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

Compare button enabled only for two or more products #1199

Merged
merged 2 commits into from
Mar 13, 2022
Merged

Compare button enabled only for two or more products #1199

merged 2 commits into from
Mar 13, 2022

Conversation

sgayangi
Copy link
Contributor

What

  • In selecting products for comparison on the History page, the compare button is always visible in comparison mode, but will only be enabled when two or more products have been selected for comparison.

Screenshot

Screenshot_20220312-204455

Screenshot_20220312-204503

Screenshot_20220312-204508

Fixes bug(s)

Part of

@sgayangi sgayangi requested a review from a team as a code owner March 12, 2022 15:22
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 @sgayangi the changes look good, just one minor comment

builder: (BuildContext context) =>
PersonalizedRankingPage.fromItems(
products: list,
title: 'Your ranking',
Copy link
Member

Choose a reason for hiding this comment

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

I know this part isn't from you but it'd be good if you could add a todo comment

// TODO(X): Translate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

May I know, does translation mean adding the strings to the .arb file? In which case, I can do so for this and other raw strings in the code.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for adding

Yes, translating is just adding it to app_en.arb file, the rest is dealt with automatically, we just have to add usefull comments for the translators, so that they know what is meant by "Your ranking" or other Strings

@M123-dev M123-dev merged commit 4ba2bec into openfoodfacts:develop Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants