Phoenix Documentation
Phoenix ProductionPhoenix PreviewContentful
Primary version
Primary version
  • 🔥Phoenix 🔥
  • Installation + Usage
    • Prerequisites
    • Installation
    • Usage
  • Development
    • Architecture
      • Heroku
    • Content Types
      • Action Stats Block
      • Campaign
      • Content Block
      • Cause Page
      • Company Page
      • Current Club Block
      • Current School Block
      • Embed
      • External Link
      • Landing Page
      • Link Action
      • Metadata
      • Page
      • Photo Submission Action
      • Selection Submission Action
      • Share Action
      • Signup Referrals Block
      • Social Drive Action
      • Voter Registration Action
      • Voter Registration Drive Action
      • Voter Registration Marketing Page
      • Voter Registration Referrals Block
    • Features
      • Affiliate Opt In
      • Affiliate Scholarship Block
      • Analytics Waypoint
      • Delayed Element
      • Dismissable Element
      • Stat Card
      • General Buttons
      • Groups
      • Paginated Campaign Gallery
      • Popover Dispatcher
      • Refer A Friend
      • Referrals Gallery
      • Sitewide Banner
      • Sixpack A/B Testing
        • Code Tests
        • Contentful Tests
        • Testing Tips
      • Tooltip
      • Traffic Distribution
      • Volunteer Credits
      • Voter Registration
      • Zendesk Form
    • Contentful
      • Workflow
      • Content Management API Scripts
    • Helpers
  • Phoenix API
    • v2
      • Campaigns Resource
      • Posts Resource
      • Zendesk Endpoint
  • Data + Performance
    • Monitoring
    • Analytics
    • Logging
  • Contributing Instructions
    • Edit This Documentation
    • Glossary
Powered by GitBook
On this page
  • Overview
  • Rogue Actions
  • Campaign
  • Volunteer Credit Certificate Table
  • Certificate Data Calculation
  • PDF Generation
  1. Development
  2. Features

Volunteer Credits

PreviousTraffic DistributionNextVoter Registration

Last updated 4 years ago

Overview

We offer Volunteer Credit certification for certain social good actions on our website.

Once a user has signed up, and reported back for a volunteer credit-worthy campaign, they can navigate to /us/account/credits and download a PDF certificate accreditation for their work.

Rogue Actions

In order to denote a particular campaign Action as volunteer credit (VC) worthy, an admin must set the Volunteer Credit (volunteer_credit) field to true. This can be done from the Rogue website on any particular action page ().

Campaign

Within a Campaign's Info Block, we display whether the campaign's primary action (calculated within the Info Block) earns Volunteer Credit or not.

Volunteer Credit Certificate Table

If a member has reported back on a campaign action which earns VC, we'll render a table on the us/account/credits account page with rows for each distinct VC action with some general information about the campaign & action.

Each row will display:

  • Campaign preview meta data (Cover image, title, CTA)

  • Action Type

  • Completed date (we grab this from the earliest completed post)

  • Cumulative "hours spent" across all accepted posts for this action if avaiable, or the estimated volunteer hours (the action's 'time commitment label')

If their RB post has been accepted, they'll be able to download their certificate!

Posts pending review will display a grayed out 'Pending' button.

The certificate will include the following data:

  • Members first name, last name, and email address

  • Campaign title & CTA

  • Completed Date

  • Cumulative "hours spent" across all accepted posts for this action or the estimated volunteer hours

  • Impact label using total aggregate impact of all their posts (we tally based on each post's quantity)

  • Reportback Photo (we grab the earliest 'accepted' photo)

The certificate will be named dosomething-volunteer-certificate-[campaign-name].pdf

Certificate Data Calculation

We calculate and parse the data for the VC table by grabbing all (100 is the technical limit) the user's photo posts (pending or accepted) for actions qualifying for VC, grouping the posts by Action ID, and then parsing out the following data per Action group:

  • Action details & campaign meta data from the earliest post

  • Pending status based on if any of the posts have an 'accepted' status or not

  • Impact label (tallying quantity from all accepted posts)

  • Hours Spent label (tallying hours_spent from all accepted posts)

  • RB photo from the earliest 'accepted' post

PDF Generation

We use the to generate the PDF on the fly from a built with custom React components.

react-pdf library
template
https://activity.dosomething.org/actions/:id
Volunteer Credit Status Campaign Info Block
Volunteer Credits Table
Volunteer Credit Certificate