Code Monkey home page Code Monkey logo

hunger-games's People

Contributors

abhilipsasahoo03 avatar adnan-sait avatar alexfauquette avatar benbenben2 avatar dependabot[bot] avatar diivi avatar gabrielbefr avatar gaurav-verma07 avatar github-actions[bot] avatar hangy avatar mount-blanc avatar nobeeakon avatar openfoodfacts-bot avatar prateekbhat2 avatar psankhe28 avatar raphael0202 avatar saikiranpatil avatar shmigolk avatar sudhanva-nadiger avatar sumana2001 avatar teolemon avatar tuukka avatar vaiton avatar yashasvichaurasia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hunger-games's Issues

Improve saved filters

For now, the home page is far from being interesting. It's empty if you have no saved filters. And if you have some saved filters, they are... factual (to not say uggly)

image

Proposed improvement

Important

  • Add a sentence on top to say what is hunger-games
  • Add some default cards linking to games
  • put an image by default for saved filters

Less important

  • set a title by default to saved filters (game 1, game 2, ...)
  • allow to edit the filter title

Images not fully loading/displaying

Story

  • when using Firefox (Mac), the images are not properly loaded making it confusing.

imagen

Possible causes

  • May be related with the Zoom component from react-medium-image-zoom (as the images are wrapped by that component)
  • If so, an alternative could be to just Material UI capabilities to show a full screen instead of the library

Add feature flags within the dev mode

What

  • We currently have a dev mode
  • It's currently enabling/disabling all features at once.
  • When enabled, it should show all feature flags, with for each one a enable/disable toggle
  • We could start with:
    • "Show database"
    • "Show Nutri-Score game"

Why

Add an option to always open clicked tags in a new tab

What

  • Add an option in the settings to always open clicked tags in a new tab

Why

  • improves loops (you click to open in a new tab, finish the 100% or so, close the tab, continue)
  • currently, you have to right click each time

Create a controllable Nutrition table

Part of #70

The idea is to do the table that takes two props data and onDataChange

the format of the data could be an array of objects

[{
	off_nutriment_id: "energy_kj",
	label: "Energie (kJ)",
	value: '25.3',
	unit: null,
	quantification: '=',
	robotoffPrediction: null
	},
{
	off_nutriment_id: "energy_kcal",
	label: "Energie (kCal)",
	value: '',
	unit: null,
	quantification: '<',
	robotoffPrediction: null
	}
]

Here is how it looked liked in the previous version (not perfect design)


Here is a list of nutrients key and their usual units

https://github.com/openfoodfacts/openfoodfacts-hungergames/blob/master/src/data/nutritions.json

[UX] Allows to report images

Technical aspect

  • The interface to mark an image as reported
  • A way to manage reported images

Solutions

Interface

To avoid having too much information on the main interface, the buttons to report an image could be added in the image gallery only.
For example a flag IconButton in the right top corner of each image

image

Managing reported images

To discuss with @teolemon :

  • Where data is stored
  • How do we send it
  • How can we access it
  • How administrators clean those problematic images

If needed I have a workaround to test the feature:

On my personal server (amathjourney.com/api), I have an API do save flagged images:

  • PUT https://amathjourney.com/api/off-annotation/flag-image/[code] with body containing {imgid, url}. The imgid must contain a number (the id of the image) and url is the image src
  • GET https://amathjourney.com/api/off-annotation/flag-image/[code] will return all the data you put for a given code
  • DELETE https://amathjourney.com/api/off-annotation/flag-image/[code] with body containing {imgid}

Basically, it saves all that in a database whit the primary key code + imgid

Settings (Tracker)

What

Tasks

  1. ⚙️ Settings

Done - Settings

  • Add a Dev mode
  • Hide the Insights view by default

Part of

More actionable cards for the logos & labels game

More actionable cards for the logos & labels game

  • This proposal will let users annotate very heterogeneous pages of logos and labels, without having to open separate tabs to annotate each one. As a result, it should make the game faster and more addictive

  • Fetching 2 top predictions & adding 2 fullfilment buttons next to them for isolated logos
  • Implementing an autocomplete input (in case the prediction are completely off, for isolated logos)

Update Button on Logo Game not Responsive

Description

While trying the logo game, I noticed an issue with the website.

The issue is that the Update button on the game page seems unresponsive.
It gives no feedback on the button being pressed or the button action being completed.

The functionality of the button is fine as it is able to assign the label to images, but the user/player won't get feedback on the task being completed.

  • It is a design Issue and it simple improves the experience of the user with the game. Initially the lack of responsiveness made me think that the website is broken .

Notes

  • Simple way to solve this issue is to give a pop-up message that the task has been completed and refresh the page.
  • Simple Refreshing the page works too.

Tasks

  • Make the Button Responsive by simply redirecting to the same page when the button is pressed

Give user an option to undo their last action

  • If by chance, the user makes a mistake and realizes it immediately, currently the user will have to go to the OFF website, find the exact product and edit the details.
  • To prevent that we can add an undo button for instant corrections.
  • The undo button can be used to cancel the post request till it reaches the server and stores the changes.

[revamp] Create a welcome tour

How to implement the tour

About the implementation aspect: reactour seems to provide an out of the box component that could be customized later

What must be highlighted

Maybe @teolemon @alexgarel or @CharlesNepote will have an opinion on the top

When do we do the highlight

Long introductions are most of the time boring, so maybe a short one on the first opening and allow a longer one if the user asks for help

Nutri-Score game

What

  • Nutri-Score game
  • #62
  • Make the Nutri-Score game accessible when the DEV mode is enabled
  • Add a counter of the total of Nutri-Scores to validate
  • Add an explanation that you need to select all the valid Nutri-Score A and validate

Part of

[UX][Questions] Allows to save filters

Locale saving

The easiest way seems to save favorites filters on the user computer thanks to locale storage. It's already done to save settings with localeStorageManager

You can copy-paste the localSettings to create a localeFavorite which would save favorite filters in a JSON format

Displaying favorites

There is already a component QuestionCard to display a link to the correct question page. This component fetch data from robotoff during the first render to know how many questions are available

You only have to specify the following props: filterState, imageSrc, and title.

Maybe imageSrc could be a default value (for example the OFF logo)
The user should specify the title property, such that with multiple favorites they can know whet do they are

UX

Adding a small button in the filter resume could be an easy way to add filterstate to the favorites
image

For letting user set a title, maybe a simple dialogue

Steps

  • Add the favorite icon button
  • Add a dialogue that allows getting the title
  • Save the favorites in the localStorage
  • In the home page, add cards according to locale storage
  • If filter state is equivalent to a saved one, the icon appears filled

Add a link to Github issues in the "settings" menu

I think it is useful when you want to open an issue or check if it's already open.
Also there are several Hunger Games github repositories and one could create an issue in an old repo.

I don't think it's necessary to create a new menu, putting this into "settings" would be ok.

A version number of the Hunger Game code would be also great but it's probably bigger work.

Gamification & User management (tracker)

What

Tasks

  1. on hold

Part of

Add a page for nutrition game

To add a page, you need to:

  • create a folder with an index.jsx returning a React component that will be the nutrition page (see other other pages are made)
  • Export this page from src/pages/index.js
  • Add it to the routing (in src/App.js) the route /nutrition sounds good

Now you should have access to localhost:3000/nutrition that displays your page

Do not add it to the app bar until the page is finished such that it can not be found by users


Could be a good starting point to fetch some products that have a nutrition picture but no data with getNutritionToFillUrl method

Display the picture, and add a button to go to the next image

Add autosuggest in the Questions game

What

  • Add autosuggest in the Questions game

image

Why

  • Make it easier for contributors to find labels/categories to answer (for brands, it's a specific autocomplete mechanism, so we can probably ignore them for now)

Eco-Score game (Tracker)

What

Tasks

Part of

Labels & Logos games (tracker)

What

Tasks

  1. good first issue
  2. fixed ? mockup available mockup required 🖼️ Logo game
  3. Dashboards ✨ Enhancement

Make logo search deep-linkable using tags so that we can link from facets on the website, using the Power User Script
https://hunger.openfoodfacts.org/logos?logo_tag=en:eu-organic

Part of

[Epic] Nutrition Game

Epic: Nutrition Game

Description

Make an easy-to-use interface for filling nutrition data table

What would a demo look like

The first idea is something very simple: one side of the screen for the picture, the second for the table to fill

Some edge case we will face: the table needs to include a quantification (is the value equal, an upper or a lower bound) and the unit

image

Tasks

  1. Shmigolk
  2. Nutrition game ✨ Enhancement
    Shmigolk
  3. Nutrition game on hold
    Shmigolk
  4. Nutrition game on hold
    Shmigolk

🎯 What can I work on ?

What

General

User-acquisition

  1. 4 of 8
    User acquisition

Favorites

  1. 1 of 4

Logos game

  1. 5 of 8
    epic 🖼️ Logo game

Eco-Score

  1. 2 of 3
    🌱 Eco-Score game

Category/Brands/… game

  1. question game

Settings

  1. 2 of 9

Gamification & User management

  1. 6 of 8
    sumana2001

Navigation

  1. 4 of 5

Nutrition game

  1. 1 of 4
    Nutrition game epic ✨ Enhancement
    Shmigolk

Ingredients game

  1. ingredients game javascript vuejs

Packaging game

  1. ecoscore hacktoberfest ingredients game javascript vuejs

Filtering

Knowledge in Hunger Games

  1. 🤗 Onboarding

Quality game

Rotation game

No tasks being tracked yet.

Insight view

  1. insight explorer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.