Skip to content

task/CDD 1379 page previews#3077

Open
jeanpierrefouche-ukhsa wants to merge 59 commits intomainfrom
task/CDD-1379-page-previews
Open

task/CDD 1379 page previews#3077
jeanpierrefouche-ukhsa wants to merge 59 commits intomainfrom
task/CDD-1379-page-previews

Conversation

@jeanpierrefouche-ukhsa
Copy link
Copy Markdown

@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa commented Mar 17, 2026

Description

CDD-1379 - Page Previews

Date: 2026-02-27

Ticket: https://ukhsa.atlassian.net/browse/CDD-1379?search_id=055fe61d-bee9-48d9-80bc-ffb0f1c26b76&referrer=quick-find

Authors: Jean-Pierre Fouche

Impact: Affects all pages - broad testing required

Testing: Comprehensive unit tests supplied. UAT needed.

Summary

Allow editors of headless composite pages to click a Preview button that immediately redirects them to the external frontend application, rather than opening the built-in Wagtail iframe preview. Preview URLs include a short-lived signed token so the frontend can safely fetch draft content from the CMS.

Additionally, allow users to select to "Time Travel" by selecting a virtual date in order to preview otherwise embargoed data.

... Continued in changelog/2026-02-27/CDD-1379.page-previews.md

Fixes #CDD-1379


Type of change

Please select the options that are relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Tech debt item (this is focused solely on addressing any relevant technical debt)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests at the right levels to prove my change is effective
  • I have added screenshots or screen grabs where appropriate
  • I have added docstrings in the correct style (google)

@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-1379-page-previews branch 5 times, most recently from 11c4f24 to 46d2401 Compare March 17, 2026 21:12
Enable page previews to the configured frontend URL
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-1379-page-previews branch from 46d2401 to 23231b1 Compare March 17, 2026 21:34
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa marked this pull request as ready for review March 18, 2026 09:42
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa requested a review from a team as a code owner March 18, 2026 09:42
update docs
update indentation in _quality.sh
Revert _tests.sh filesystem
mode to 0644
Fix import statements in tests!
updates to tests to cover all paths
(as requested in PR)
Fix Sonar issues with
datetime picker
updated tests to use G Docstrings
and BDD approach
Remove redundant getters
for env vars
100% code coverage
"Set now" embargo time is now
part of the datetime picker
Rework eye graphic for preview button
Remove clock graphic - no longer in use
Fix datetime picker control visibility
Ensure accessibility is covered
Update changelog document
Fix sonar issue related to ARIA compliance
Datepicker accessibility
Security hardening for redirect API
Bolster redirect API
Add comments to provide justification
for exposing this endpoint
fix linter issues
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants