binawork / OnlineOnboarding

✈️ Online onboarding, reporting for employees, human resources management. A modern, simple and powerful web app to help you running your company while everyone are working remotely due to COVID social distancing
4 stars 0 forks source link

Feature/user progress 119 #194

Closed adam-sas-on closed 3 years ago

adam-sas-on commented 3 years ago

It is a 'mid'-pull-request - temporary. On the backend side new serializers and view endpoints are included to share less but important data about users and packages relation to check the number of packages the user received - denominator part of progress. New API endpoint and method - def list_all(self, request, pk=None) - is added to share data about all users of company but less detailed. It is because "Dashboard" needs less data of progress but for all users; "Employee Profile Page" needs more informative data but for one user only.

On the front-end part only one small refactor: new component of progress is created and usersWithPackages() was moved to it. It is planned to use this new progress component for more functions for "Dashboard".