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

feat: reporting images added #147

Merged
merged 6 commits into from
Aug 21, 2022
Merged

Conversation

sumana2001
Copy link
Collaborator

Screen.Recording.2022-08-14.at.2.47.40.PM.mov

Closes #22

src/utils.js Outdated Show resolved Hide resolved
src/utils.js Outdated Show resolved Hide resolved
src/utils.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@nobeeakon nobeeakon left a comment

Choose a reason for hiding this comment

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

really good @sumana2001 ... maybe it would be nice to have a tooltip in the button or a question mark icon with a tooltip next to the flag or something that explains what the flag means

@sumana2001
Copy link
Collaborator Author

I have made the changes you suggested, please have a look again. @nobeeakon @alexfauquette

Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

I notice that you do not fetch the flagged images for a product to check if some images have already been flagged by other users.

It's not a problem, because it should be rare, and I prefer having rare inconsistencies than spamming my toy server 🙈

src/pages/questions/ProductInformation.jsx Outdated Show resolved Hide resolved
src/pages/questions/ProductInformation.jsx Outdated Show resolved Hide resolved
src/pages/questions/ProductInformation.jsx Outdated Show resolved Hide resolved
src/pages/questions/ProductInformation.jsx Outdated Show resolved Hide resolved
src/pages/questions/ProductInformation.jsx Outdated Show resolved Hide resolved
}
)
.catch(() => {
console.log("Something went wrong. Image could not be flagged");
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: no need for the console.log as it is not useful for the client, you could leave .catch(() => {}) and it will be fine

@alexfauquette alexfauquette merged commit a25c1ef into openfoodfacts:master Aug 21, 2022
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.

[UX] Allows to report images
4 participants