A project serving Community Education Partnerships - https://www.cep.ngo/ . This Rails application presents an admin interface for CEP to manage their volunteers and students. And provides a GraphQL backend for https://github.com/rubyforgood/inkind-volunteer .
[x] When an admin clicks on the "Surveys" tab, they arrive on a Survey's index page.
[x] "Surveys" title at top of page.
[x] Table view similar in style to other index views in app
[x] Headers match what is outlined in the "Things to Consider" section
[x] 2 new columns added to surveys that store the creator and the status
[x] Values in table are pulled from data and not hardcoded
Description
This adds a survey index page with a table and the following columns:
Name (value not clickable yet)
Date Created
Responses (not respondents) - Displays number of COMPLETED survey_responses attached to the survey
Created By (add creator_id to surveys. Update seed to point at sole admin user for now.)
Status (add status enum to surveys. Follow convention on survey_responses.)
Actions (but no actions yet)
n.b.: I had the status default to active for the survey because that made sense to me.
Also, I formatted the date like it is in the mock up but we have two other ways of doing dates in the system. We should probably standardize.
Type of change
New feature (non-breaking change which adds functionality)
Resolves #127
Checklist
Description
This adds a survey index page with a table and the following columns:
Name (value not clickable yet) Date Created Responses (not respondents) - Displays number of COMPLETED survey_responses attached to the survey Created By (add creator_id to surveys. Update seed to point at sole admin user for now.) Status (add status enum to surveys. Follow convention on survey_responses.) Actions (but no actions yet)
n.b.: I had the
status
default toactive
for the survey because that made sense to me.Also, I formatted the date like it is in the mock up but we have two other ways of doing dates in the system. We should probably standardize.
Type of change
Screenshots