-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Nutripatrol web components #68
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
base: main
Are you sure you want to change the base?
Conversation
@KarruHarin Hey ! |
@teolemon Question, do we want to have the same button everywhere or just a web component that opens a form to send a report? |
{ value: "inappropriate", label: msg("Inappropriate content") }, | ||
{ value: "human", label: msg("Contains identifiable person") }, | ||
{ value: "beauty", label: msg("Beauty product (not food)") }, | ||
{ value: "image_to_delete_spam", label: msg("Spam") }, | ||
{ value: "image_to_delete_face", label: msg("Shows face") }, | ||
{ value: "other", label: msg("Other issue") }, | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have option in API @teolemon ?
} | ||
} | ||
|
||
static override styles = css` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move css in top of component
Use |
@Kout95 I have made the required changes ! Would be glad if you check and review them ! Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KarruHarin Can you replace all the *.xlf files by the ones from main, except for any changes in en.xlf. Crowdin automatically replicates once PRs are merged
What
we can integrate this same nutriPatrol component into photoManager , productPage , searchResults , by just changing the type just like @teolemon asked for .
This is the basic structure of our web component :
followed the api structure :
For now I am having cors error as I am running it locally and cant post to nutripatrol api .
Screenshot
Recording.2025-03-30.000453.mp4
Fixes bug(s)
openfoodfacts/openfoodfacts-explorer#178
Part of
#29
@teolemon @Kout95 looking forward for your feedback :) .
I am ready to make any modifications to the code to meet any additional requirements !