-
Notifications
You must be signed in to change notification settings - Fork 530
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
Add functionality for counting file uploads #3522
Conversation
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.
I haven't tested the code yet, but it make sense. Left some suggestions.
Factored out notification useEffect hook, added extra tag for badge messages
Sorry for the confusion - in https://github.com/mozilla/pontoon/pull/3522/files#r1913781900 and the following comment I meant to communicate that the approach I used in the linked gist is not good enough to be used and we should just factor out a function that checks if we have any notifications to display. |
Fix #3482
This PR adds badge stat counting logic for file uploads.
The communication between frontend and backend is done using the Django messaging framework.
To reproduce results: Head to any resource, click on your profile in the top right, and then click "Download Translations". Save this file in a text editor, and edit 5 translations. Then, head back to the resource, click on your profile again, and click "Upload Translations". Upload the file you edited. Once the upload is complete, you should be awarded the Translation Champion Badge for this action.