You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There will be a new section added to the Agency Settings page that collects information on how a court/supervision agency defines itself and its respective sector(s). It will operate in the same way as the Metric Definitions, with a set of checkboxes that determine whether or not each item applies to the agencies definition of itself, along with a Justice Counts definition link-button that will automatically select the default definitions.
This section will live as the last field within the Agency Name, State, Sector, Description and URL section. When a user clicks the Edit button, a modal will pop up (very similar to the Metric Definitions) with a set of includes/excludes options for the agency to select/de-select. For the Supervision section, the questions should appear dynamically based on their Included selections for the Supervision Populations section (e.g. if only Parole and Probation are Included, then the modal should only show those two sections - as shown in the Figma).
For a Courts agency, they'll see the CourtsIncludesExcludes set of options, and for a Supervision agency that has subpopulations, they will see the relevant<Subpopulation>IncludesExcludes set of options located in the components/AgencySettings/includesExcludes.ts file (when PR #1541 is merged in).
Note:
If we have the unlikely & unusual case where an agency has both Court, and Supervision sectors, then we should show the all of the relevant sections when they open the modal (again, for the supervision sector - only the the supervision subpopulations they mark as Included).
For the supervision sector, the Justice Counts definition button can apply the default selections for all of the subpopulations at once (e.g. if they include Parole and Probation, and the user clicks Justice Counts definition - the defaults for both Parole and Probation are automatically selected).
The backend for this is not yet implemented, so we should gate this section with a TODO to ungate once the BE is fleshed out.
We'll be using the same saveAgencySettings method and endpoint for sending the updates, and receiving the saved data from the same GET endpoint we use for the other settings.
There will be a new section added to the Agency Settings page that collects information on how a court/supervision agency defines itself and its respective sector(s). It will operate in the same way as the Metric Definitions, with a set of checkboxes that determine whether or not each item applies to the agencies definition of itself, along with a Justice Counts definition link-button that will automatically select the default definitions.
This section will live as the last field within the Agency Name, State, Sector, Description and URL section. When a user clicks the
Edit
button, a modal will pop up (very similar to the Metric Definitions) with a set of includes/excludes options for the agency to select/de-select. For the Supervision section, the questions should appear dynamically based on theirIncluded
selections for theSupervision Populations
section (e.g. if only Parole and Probation areIncluded
, then the modal should only show those two sections - as shown in the Figma).For a Courts agency, they'll see the
CourtsIncludesExcludes
set of options, and for a Supervision agency that has subpopulations, they will see the relevant<Subpopulation>IncludesExcludes
set of options located in thecomponents/AgencySettings/includesExcludes.ts
file (when PR #1541 is merged in).Note:
If we have the unlikely & unusual case where an agency has both Court, and Supervision sectors, then we should show the all of the relevant sections when they open the modal (again, for the supervision sector - only the the supervision subpopulations they mark asIncluded
).Justice Counts definition
button can apply the default selections for all of the subpopulations at once (e.g. if they include Parole and Probation, and the user clicksJustice Counts definition
- the defaults for both Parole and Probation are automatically selected).Reference: Figma design (not to precise scale)
The backend for this is not yet implemented, so we should gate this section with a TODO to ungate once the BE is fleshed out.
We'll be using the same
saveAgencySettings
method and endpoint for sending the updates, and receiving the saved data from the same GET endpoint we use for the other settings.GET endpoint structure:
PATCH endpoint structure (payload):
The text was updated successfully, but these errors were encountered: