rubyforgood / rubyforgood/casa

Improve datatable display of volunteers on `/supervisors` page

Open
#5,774 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Difficulty: Advanced no-issue-activity
Dominant language
Ruby
Stars
381
Forks
542
Avg merge
3d 15h
Merged PRs (30d)
47

Description

What type(s) of User Does This Feature Affect?

  • supervisors
  • admins

Description

We currently have the follow page for supervisors to look at their volunteers (/supervisors):

Image

We would like to make some small-ish improvements to it.

Goals

As you can see in the screenshot 16 is shorter than 13. This is because the page makes calls to dynamically generated CSS classes https://github.com/rubyforgood/casa/blob/8ce3a077129515cad15a87bc2170f189428e70f4/app/javascript/src/dashboard.js#L342. Those classes aren't always built (or maybe they got minified out). Regardless, using classes like that isn't a good idea.

Count of Transition Age youth does not belong in the "Volunteer Info" column. Lets combine this information with volunteer information instead. Maybe something like:

Image

or the two rows could be overlaid on each other.

Completion Criteria
  • Make the table elements scale correctly
  • Consider what do to do if the element if large enough that it would go off the page
  • Change the transition aged data to overlay the volunteer data or be on another row

How to Access the QA Site

Login Details:
Link to QA site

Login Emails:

  • volunteer1@example.com view site as a volunteer
  • supervisor1@example.com view site as a supervisor
  • casa_admin1@example.com view site as an admin
  • all_casa_admin1@example.com view site as an all casa admin
    • go to /all_casa_admins/sign_in

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting app/javascript/src/dashboard.js around line 342 and the /supervisors datatable implementation. Reproduce the page using the QA credentials, then verify that table elements scale correctly, remain usable when content is wide, and display transition-age data in the revised volunteer information layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.