Skip to content

Add check answers pages to meeting flows - #298

Merged
SamWooldridgeKainos merged 407 commits into
CPS-Innovation:mainfrom
SamWooldridgeKainos:main
Sep 23, 2026
Merged

SamWooldridgeKainos merged 407 commits into
CPS-Innovation:mainfrom
SamWooldridgeKainos:main

Conversation

@SamWooldridgeKainos

Copy link
Copy Markdown
Contributor

Introduces review pages for meeting offer and cancellation workflows, allowing users to verify details before confirming. Changes include:

  • New check-answers routes for offer, response, and cancellation flows
  • Support for 'changeMode' to edit individual fields from Change links and return to review
  • New views: check-offer.html, check-response.html, cancelled/check-answers.html
  • Dynamic family members support in who-offered and attendees selectors
  • Task-aware navigation buttons in pending state (show specific task links based on data['nextTask'])
  • Fallback messages in state views when no offer data present

This follows the GOV.UK pattern of review-and-confirm for multi-step processes.

SamWooldridgeKainos and others added 30 commits May 28, 2026 01:11
Index update and Playwright fix take 2
wat4 refs and stashed changes clean up
Prototype updated to reflect build!
SamWooldridgeKainos and others added 28 commits September 9, 2026 11:58
Removes a large set of unused BFS onboarding check-details templates, including old family contact and secondary family-member flows (`family-members2` and related index variants). Existing check-details field pages were preserved by moving them into an `archive/` folder for reference. Also tidies the remaining family member check-answers page by fixing heading casing and removing the redundant “Personal details” subheading.
Prune legacy BFS check-details templates
Add client-side form validation for bereaved family member name and relationship fields. Enhance meeting outcome logging flow with change mode support and dynamic attendee management. Refactor family representative selection to use dedicated page. Update form actions, session data handling, and improve field labeling across multiple views.
Add form validation and enhance BFS meeting workflow
Remove conditional redirect logic for logging answers and simplify to always redirect to purpose endpoint. Update 'Sorted by' text across multiple victims pages to reflect current sort order (Last name A to Z only, removing 'Victims first' criterion).
Simplify logging flow and update sort text
This commit adds a change-mode flag for BFS meeting journeys so forms only repopulate values when a user revises an existing meeting. It also introduces a reusable meeting-purpose label filter and updates meeting check answers and status cards to display the correct purpose text across arranged, offered, pending, no-response and rescheduled states.
Add change-mode meeting prefill flow
Add comprehensive reschedule and cancel workflows for pre-trial meetings:

- Implement reschedule check-answers page with session snapshots to track previous arrangements
- Add cancel meeting flow with date and reason capture
- Separate person data model: first_name, last_name, role (instead of name/role)
- Format attendee names as "LASTNAME, Firstname (Role)" to match predefined options
- Fix form routing: convert links to buttons with formaction for proper session state
- Make meeting detail pages dynamic using session data instead of hardcoded values
- Remove changeMode conditionals from attendee/lead checkboxes (now always checked based on session)
- Clean up button styling: remove --secondary, remove redundant visually-hidden text
- Delete duplicate check-answers2.html (consolidated into check-answers.html)
- Update rescheduled and cancelled state views with dynamic data and previous meeting details
Implement meeting reschedule and cancel flows
Introduces review pages for meeting offer and cancellation workflows, allowing users to verify details before confirming. Changes include:

- New check-answers routes for offer, response, and cancellation flows
- Support for 'changeMode' to edit individual fields from Change links and return to review
- New views: check-offer.html, check-response.html, cancelled/check-answers.html
- Dynamic family members support in who-offered and attendees selectors
- Task-aware navigation buttons in pending state (show specific task links based on data['nextTask'])
- Fallback messages in state views when no offer data present

This follows the GOV.UK pattern of review-and-confirm for multi-step processes.
Add check answers pages to meeting flows
@sonarqubecloud

sonarqubecloud Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
20.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@SamWooldridgeKainos
SamWooldridgeKainos merged commit 37835cb into CPS-Innovation:main Sep 23, 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