Skip to content

Make results per page configurable per view - #276

Merged
SamWooldridgeKainos merged 333 commits into
CPS-Innovation:mainfrom
SamWooldridgeKainos:main
Jul 29, 2026
Merged

Make results per page configurable per view#276
SamWooldridgeKainos merged 333 commits into
CPS-Innovation:mainfrom
SamWooldridgeKainos:main

Conversation

@SamWooldridgeKainos

Copy link
Copy Markdown
Contributor

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.

SamWooldridgeKainos and others added 30 commits March 5, 2026 17:16
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
Refactor and onboarding enhancements
SamWooldridgeKainos and others added 28 commits July 17, 2026 15:28
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
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@SamWooldridgeKainos
SamWooldridgeKainos merged commit ae5f833 into CPS-Innovation:main Jul 29, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants