Add follow-up call and no-contact logging#263
Merged
SamWooldridgeKainos merged 297 commits intoJul 14, 2026
Conversation
Hopeful merge conflicts resolution
Non-integrated comms journey
Non-integrated comms journey (for review)
Non-integrated comms journeys (for review) (#70)
…te format with day, taskDueDate bug
Disability and access needs and VLO onboarding updates
New VCL version
Optional time on ad-hoc comms
Introduces a new “task already exists” journey in v50/v51 PCD routes and views, preventing duplicate DTC/NFA task creation while allowing due date entry/updates before continuing. Due date handling now preserves PCD context and redirects back to victim communications with a new `due-date-updated` success state, with matching notification banner updates across victim index variants. Also updates victim category handling in v50/v51 by removing outdated exclusive options/client-side validation hooks and showing selected category values dynamically on the overview page.
Add duplicate PCD task flow and category fixes
Extends the v51 VCL phone-contact journey so first unsuccessful call attempts can capture whether a text was sent, record text details, and store planned second/third call times before returning to communications. Adds new pages and route handlers for this flow, and updates task entry to use `/v51/vcl/start-task`.
The victim communications card now supports in-progress VCL decisions, shows latest vs previous call attempts more clearly, and surfaces next-step actions (log another communication or force letter after 3 failed calls). It also refactors repeated email/letter/call rendering into macros and tightens follow-up section visibility. Copy was updated in v50/v51 follow-up logging screens to be victim-specific and simpler ("Email"/"Post").
Add text-message branch to VCL call flow
Archive each completed charging decision (PCD) into its own read-only summary card when the user logs another communication. Key changes: - Add `sortPcdDecisions` Nunjucks filter mirroring `sortVclDecisions` - Add `finalizePcdDecision()` and `addPcdFollowUp()` helpers in v50/v51 routes to archive transient PCD fields into `pcdDecisions[]` and route follow-ups to the correct card via `pcdId` - Add `/v50/pcd/log-another` route to trigger archival and restart the PCD flow - Add new `card.html` partials (v50 and v51) rendering archived decision cards with call attempts, email/letter sections, and per-card follow-up links - Update `pcd/index.html` in v50/v51 to render archived cards below the live decision and show/hide the initial prompt correctly - Expand v51 `vcl-type.html` into a unified "Log another communication" chooser covering DTC, NFA, stopped-charge and altered-charge options - Rename "Victim is not to be contacted" radio label to "Decision made not to contact victim" across v50/v51 PCD and VCL contacted-by pages
Add multi-PCD support for v50 and v51
Introduces two new PCD follow-up paths in v50 and v51: logging telephone calls and recording decisions not to contact a victim. Adds routing and handlers, new form and confirmation pages, and shared client-side validation for telephone call fields. Updates follow-up selection options and victim PCD communication summaries to display call direction, informed status, time, notes, and not-contact reasons.
Add follow-up call and no-contact logging
|
f39d877
into
CPS-Innovation:main
7 of 8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Introduces two new PCD follow-up paths in v50 and v51: logging telephone calls and recording decisions not to contact a victim. Adds routing and handlers, new form and confirmation pages, and shared client-side validation for telephone call fields. Updates follow-up selection options and victim PCD communication summaries to display call direction, informed status, time, notes, and not-contact reasons.