inst-support-eng / panda-pto

Panda-PTO is a in house solution to HR staffing needs
3 stars 0 forks source link

Teams and color #166

Open Steaphan-Sadler opened 5 years ago

Steaphan-Sadler commented 5 years ago

This Pull requests creates a /teams page, accessible from the Admin Index page. This new Teams page will be ground work to help Supervisors easily gain some insights into their team.

To improve the color config in admin view, an addition of a color selector has been added, which will update the color displayed for all users on the team. This also allows for team colors/names to change without refactoring color settings in the future.

Test Plan: Teams Page

  1. As a Sup positioned user, access the Admin Index page and use the "My Team" button to access the Teams page.
  2. Use the "set Team color" Button to change a team's color
  3. Note the color change on the Teams page,
  4. Return to the Admin Index page to ensure that all of the team's schedule agents now display in the appropriate color.

New User

  1. Create a New user via CSV upload or Hoomanity imports -- The user should be added to an existing team where a team color has been set
  2. Ensure that, once created, the user has a :color set, matching the Supervisor's :color

NOTE This pull request will result in all User's having a Nil :color value. This will require that Supervisors set a team color before the index pages display an agent's team color appropriately, or before new users have a team color set.

Closes #156