Skip to content

PPHA-678: Footer - Cookies#341

Merged
stephhou merged 11 commits intomainfrom
PPHA-678-footer-cookies
Mar 10, 2026
Merged

PPHA-678: Footer - Cookies#341
stephhou merged 11 commits intomainfrom
PPHA-678-footer-cookies

Conversation

@stephhou
Copy link
Contributor

@stephhou stephhou commented Mar 9, 2026

What is the change?

  • Created a cookies page
  • Created a cookies url
  • Added cookies link to footer that can be accessed before and after logging in to the application

Why are we making this change?

These changes have been made as a contribution to meeting requirements for legal documentation.

@stephhou stephhou marked this pull request as ready for review March 9, 2026 16:17
Copilot AI review requested due to automatic review settings March 9, 2026 16:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Cookies policy page to the “questions” Django app and exposes it via a new /cookies route, then links it from the global footer so it’s available across the service for legal documentation compliance.

Changes:

  • Add a /cookies URL mapped to a new cookies.jinja static template.
  • Add a “Cookies” link to the global footer (alongside Privacy policy).
  • Add a Behave feature to check static pages for accessibility violations.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
lung_cancer_screening/questions/urls.py Adds the cookies route via TemplateView.
lung_cancer_screening/questions/jinja2/cookies.jinja Introduces the Cookies policy content/template.
lung_cancer_screening/core/jinja2/layout.jinja Adds a footer link to the Cookies page.
features/static.feature Adds an accessibility check scenario for static pages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

lung_cancer_screening/core/jinja2/layout.jinja:66

  • A new footer navigation item is introduced for the cookies page, but the new feature covers direct navigation only and does not assert that the footer link is present/works when logged out and logged in (which is part of the PR description). Please add an acceptance test that validates the footer contains the "Cookies" link and that it navigates to the cookies page in both states.
  {{ footer({
    "meta": {
      "items": [
        {
          "href": url("questions:cookies"),
          "text": "Cookies"
        },
        {
          "href": url("questions:privacy_policy"),
          "text": "Privacy policy"
        }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

stephhou and others added 2 commits March 10, 2026 09:08
Indentation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Steph Housden <167300771+stephhou@users.noreply.github.com>
@sonarqubecloud
Copy link

@stephhou stephhou merged commit ed7921e into main Mar 10, 2026
53 of 55 checks passed
@stephhou stephhou deleted the PPHA-678-footer-cookies branch March 10, 2026 13:08
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.

3 participants