Skip to content
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

Separates Admin and Volunteer Dashboards #161

Merged

Conversation

colinsoleim
Copy link
Collaborator

Resolves #158
Resolves #96
Resolves #94

Description

Explanation:
The volunteer and admin stories for the dashboard were starting to diverge
so to limit conditionals throughout the view, this commit separates the
volunteer and admin dashboards into two separate partials. It might be cleaner
to separate the views at the routes level with constraints down the road, but
for now since we only have the two paths, I think the partials are fine.

This PR:

  • Removes CaseContacts table from Admin Dashboard
  • Adds 'Last Case Contact' field to volunteers table on Admin Dashboard
  • Adds 'Contacts Made in Last 60 days' to volunteers table on Admin Dashboard
  • Simplifies User Dashboard by removing jquery from cases table

Type of change

  • New feature (non-breaking change which adds functionality)

How will this affect user permissions?

Removes a large number of pundit policy checks in favor of one master check.

How Has This Been Tested?

Local testing and existing Rspecs pass

Screenshots

Screen Shot 2020-04-23 at 11 13 58 AM

Screen Shot 2020-04-23 at 11 13 56 AM

Explanation:
  The volunteer and admin stories for the dashboard were starting to diverge
  so to limit conditionals throughout the view, this commit separates the
  volunteer and admin dashboards into two separate partials. Because there are
  only two views,

This PR:
- Removes CaseContacts table from Admin Dashboard
- Adds 'Last Case Contact' field to volunteers table on Admin Dashboard
- Adds 'Contacts Made in Last 60 days' to volunteers table on Admin Dashboard
- Simplifies User Dashboard by removing jquery from cases table
Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thanks :)

@compwron compwron merged commit 5e9751a into rubyforgood:master Apr 23, 2020
@colinsoleim colinsoleim deleted the split-user-and-admin-dashboards branch April 28, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants