Redirecting Messaged and Admin Functionality in Badgeyay
Repository
https://github.com/fossasia/badgeyay
About the Project
Badgeyay is a badge generator that allows the user or event manager to create badges without any hassle. All you need to do is provide us with the images and the data that you want on the badges and Badgeyay will do the rest and generate thousands of badges for you within minute(s).
New Features
What new feature(s) did you add?
- I worked on adding the redirecting feature to the my-badges component of Badgeyay. The my-badges component of badgeyay shows the badges produced by the user. If incase the user has never produced any badges or has just signed up, then the component was coming as blank. Now if the user has zero badges produced then the component shows a redirecting message to the create-badges component. I've also updated the dependencies to avoid future problems.
No message incase of any badges generated
The message is shown in case of 0 badges generated :-
- I also worked on adding the admin functionality to the backend of badgeyay. An admin must be allowed some features like getting all files, statistics of all users registered so far, statistics of the badges produced and much more. I also created a route for registering new admins from the backend.
A screenshot of the register admin api
How did you implement it/them?
- At first I worked on adding the redirecting message to badgeyay frontend. For that I needed to understand basics of EmberJS. Then I worked my way around models and controllers. Finally I used the handlebars templating engine to create a condition which checks if the badges produced array is empty or not. If it is empty then no badges have been produced and hence the message must be shown.
- Then I worked on adding the admin functionality to backend. I started off with making SQLAlchemy models alongside the marshmallow_jsonapi schemas for the admin. Then I created a route and incorporated the models and schema into it, thereby completing the registering functionality
Contributions
Pull Requests linked with this work are #976 & #989
My Github Profile : https://github.com/gabru-md
Thanks for the contribution, @gabrum! It would be great if you could add some comments to your code and keep the naming convention consistent (I had noticed you sometimes use camelCase, but mostly snake case).
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
okay! will make sure from next time.
thank you
Hey @gabrum
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Congratulations @gabrum! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!