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

Suggest as you type for values #16

Open
Tracked by #19 ...
CharlesNepote opened this issue Sep 10, 2021 · 0 comments
Open
Tracked by #19 ...

Suggest as you type for values #16

CharlesNepote opened this issue Sep 10, 2021 · 0 comments
Labels
✨ enhancement New feature or request ⭐ top issue Top issue.

Comments

@CharlesNepote
Copy link
Member

CharlesNepote commented Sep 10, 2021

Many properties could benefit from automatic suggestions based on current values.

Example:

  • all boolean values (or closed to boolean): whether the awaited value is yes, no, maybe, 1, 0, -, the feature would suggest the 2, 3 or 4 always given values
  • properties with few values; eg. when a barcode is used for different products, the multiple property could be yes, 2, 3, >3 (other values would not be useful)

Rationale

  • Avoid creating complex types of values: data types, closed lists, taxonomies, etc.
  • Follow one of the core Open Food Facts principle: let the users enter any data for their needs, and, eventually, standardize later on; this way, the standards or lists of values are led by the usages

Design

  • It should show all the values before typing when the number of current values is less than 4-5
  • Values should be sorted by most given values
  • After typing the two first chars, it should show the X possible values containing these two chars
  • It should not suggest anything when the number of possible values is more than 100 (?)
  • The value entered should remain free. This feature does not constrain anything.

Implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request ⭐ top issue Top issue.
Projects
Status: Todo
Development

No branches or pull requests

2 participants