Skip to content

Commit

Permalink
add CC metric to PA
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Jun 4, 2021
1 parent 86ea451 commit f64a855
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spotlight-client/src/DataStore/TenantStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,6 @@ test("section number is validated against current narrative", () => {
});

reactImmediately(() => {
expect(tenantStore.currentSectionNumber).toBe(6);
expect(tenantStore.currentSectionNumber).toBe(7);
});
});
27 changes: 27 additions & 0 deletions spotlight-client/src/contentApi/sources/us_pa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ const content: TenantContent = {
</p>`,
metricTypeId: "PrisonPopulationCurrent",
},
{
title: "Who is in a transitional facility?",
body: `<p>
People who are nearing the end of their prison term may be admitted to a
community correction center in advance of their release from incarceration.
These residential facilities, operated by the DOC or private contractors,
offer supportive programming to help prepare people for a successful
return to the community.
</p>`,
metricTypeId: "CommunityCorrectionsPopulationCurrent",
},
{
title: "How has the incarcerated population changed over time?",
body: `<p>
Expand Down Expand Up @@ -199,6 +210,18 @@ const content: TenantContent = {
after the individual is released from the DOC.
</p>`,
},
CommunityCorrectionsPopulationCurrent: {
name: "Community Correction Centers",
methodology: `
<p>
In distributions by age, individuals are counted towards the age group they
fall into as of the reporting date. Gender distributions only include male and
female due to low numbers of other reported genders. Distributions by race
count individuals with more than one reported race or ethnicity towards the
racial or ethnic identity that is least represented in the general population.
</p>`,
totalLabel: "Total people in community correction centers",
},

ParolePopulationCurrent: {
name: "Current Parole Population",
Expand Down Expand Up @@ -534,6 +557,10 @@ const content: TenantContent = {
{ id: "05", label: "Williamsport" },
],
},
CommunityCorrections: {
label: "Facility",
entries: [{ id: "ALL", label: "All Facilities" }],
},
},
};

Expand Down

0 comments on commit f64a855

Please sign in to comment.