Make results per page configurable per view - #276
Merged
SamWooldridgeKainos merged 333 commits intoJul 29, 2026
Conversation
Updates post Sprint Review and conversations
Hide victim page action if no task set, and Next task > Task
No task set on victims page fix
Letter logged fix
Minor content fixes
Generic ad-hoc comms
Ad-hoc comms final updates
ad hoc task and service lead
Refactor and onboarding enhancements
Extends shared task filtering to support “Due tomorrow” and “Due in the next 7 days”, including robust due-date parsing and dynamic “Due tomorrow” tagging based on actual calendar dates. Updates sample task data to surface tomorrow-due items, and refreshes v50/v51 UI content by standardizing results text styling, clarifying contact language (“for CPS”), renaming follow-up actions, simplifying disability success messaging, and restructuring victim overview cards into GOV.UK summary-list layouts with updated column widths.
Add due-date filters and refine v50/v51 copy
Tightens task due-date handling by making the upcoming filter cover the next 7 calendar days correctly, adding explicit "Due tomorrow" sample data, and generating overdue/today/tomorrow tags for manual tasks from their entered date. Also updates v50/v51 victim pages to rename the CPS contact preference label and expand the overview contact sections with detailed FLO/IDVA/ISVA and CMS contact information, including clearer Officer in Charge fields.
Refine due date tags and victim contacts
Replace legacy CPS area options with the new regional list in shared filter data and cps-areas. Update seeded task and victim records, plus the default session area, to use the new region names so filters and sample data stay consistent.
Align data with new CPS area regions
Adds a 'Person contacted' radio group (Victim, Via police, Via ISVA, Via IDVA, Other) to all v51 communication forms across PCD, VCL, and Other flows — calls, emails, letters, and follow-ups. A shared resolvePersonContacted() helper resolves the radio value into a display string, pulling ISVA/IDVA names from session data. The value is stored on each logged communication and surfaced in all summary views and cards. Also reorganises the index page, moving v50 into 'Old versions' and updating section descriptions.
Add 'Person contacted' field to v51 comms
Add the `_person-contacted.html` macro import (with context) to `call-attempt-2.html` and `call-attempt-3.html` so both PCD detail views can use the shared person-contacted rendering consistently.
Bug fix: Import person-contacted macro in call attempts
…oute-v50-v51 Add v50 & v51 route inventory documentation (CSV, HTML, Markdown)
Add optional global overrides (TASKS_RESULTS_PER_PAGE, VICTIMS_RESULTS_PER_PAGE) to tasks and victims pagination modules, defaulting to 10. Set these to 5 in the v50 tasks and victims views.
Make results per page configurable per view
|
SamWooldridgeKainos
merged commit Jul 29, 2026
ae5f833
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.




Add optional global overrides (TASKS_RESULTS_PER_PAGE, VICTIMS_RESULTS_PER_PAGE) to tasks and victims pagination modules, defaulting to 10. Set these to 5 in the v50 tasks and victims views.