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

Increase the number of tags displayed to 5 or 6 #5688

Open
CharlesNepote opened this issue Sep 16, 2021 · 1 comment
Open

Increase the number of tags displayed to 5 or 6 #5688

CharlesNepote opened this issue Sep 16, 2021 · 1 comment
Labels
✏️ Editing frontend JavaScript ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.

Comments

@CharlesNepote
Copy link
Member

CharlesNepote commented Sep 16, 2021

What

I often work on Nutri-Score labels: add them, fix them, etc. Unfortunately, the last tags proposed are only 3: when working on Nutri-Score or Eco-Score labels I have only 3 chances to have the label I want out of 6.
image

Proposed solution

Increase the number of tags displayed to 5 or 6. Or at least 4.

Potential alternatives

  • Maybe more than 3 tags will be disturbing for beginners. It could be reserved for experienced users, or a personal option.
  • It might be done with Power user Script, but I don't see how.

Implementation

It's very easy to change: this number is defined by Javascript constant maximumRecentEntriesPerTag: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/html/js/product-multilingual.js#L524

Part of

@CharlesNepote CharlesNepote added ✨ Feature Features or enhancements to Open Food Facts server frontend JavaScript labels Sep 16, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Dec 16, 2021
@teolemon teolemon removed the ✨ Feature Features or enhancements to Open Food Facts server label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Editing frontend JavaScript ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Projects
Status: To discuss and validate
Development

No branches or pull requests

2 participants