Skip to content

Add setting for page load emissions figure#433

Open
ianmeigh wants to merge 5 commits into
mainfrom
feature/carbon-impact-setting
Open

Add setting for page load emissions figure#433
ianmeigh wants to merge 5 commits into
mainfrom
feature/carbon-impact-setting

Conversation

@ianmeigh

@ianmeigh ianmeigh commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Link to Ticket

Description of Changes Made

Add a site navigation setting for the estimated carbon emitted when loading the home page. This allows a site admin to update the figure without needing to submit a PR for wording changes.

How to Test

  1. Checkout out this branch
  2. Run migrations
  3. Edit the site navigation settings
  4. Add an figure for the carbon impact figure field
  5. Once saved, reload the homepage
  6. The carbon impact footer field should be displayed with the figure you entered.

Screenshots

Expand to see more Screenshot from 2026-05-27 11-23-41 Screenshot from 2026-05-27 11-24-18

MR Checklist

  • Add a description of your pull request and instructions for the reviewer to verify your work.
  • If your pull request is for a specific ticket, link to it in the description.
  • Stay on point and keep it small so the merge request can be easily reviewed.
  • Tests and linting passes.

Unit tests

  • Added
  • Not required

Documentation

Browser testing

  • I have tested in the following browsers and environments (edit the list as required)
    • Latest version of Chrome on mac
    • Latest version of Firefox on mac
    • Latest version of Safari on mac
    • Safari on last two versions of iOS
    • Chrome on last two versions of Android
  • Not required

Data protection

  • Not relevant
  • This adds new sources of PII and documents it and modifies Birdbath processors accordingly

Light and dark mode

  • I have tested the changes in both light and dark mode
  • The change is not relevant to dark and light mode

Accessibility

  • Automated WCAG 2.1 tests pass
  • HTML validation passes
  • Manual WCAG 2.1 tests completed
  • I have tested in a screen reader
  • I have tested in high-contrast mode
  • Any animations removed for prefers-reduced-motion
  • Not required

Sustainability

  • Images are optimised and lazy-loading used where appropriate
  • SVGs have been optimised
  • Performance and transfer of data considered
  • If JavaScript is needed alternatives have been considered
  • Not required

Pattern library

  • The pattern library component for this template displays correctly, and does not break parent templates
  • The styleguide is updated if relevant
  • Changes are not relevant the pattern library

@ianmeigh ianmeigh self-assigned this May 27, 2026
@ianmeigh ianmeigh requested a review from helenb May 27, 2026 10:26
@ianmeigh ianmeigh changed the title feat: add setting for page load emissions figure Add setting for page load emissions figure May 27, 2026

@helenb helenb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @ianmeigh this is great. I'm approving as there are no major issues - just a couple of suggestions.

Comment thread tbx/navigation/models.py Outdated
@nicklee

nicklee commented Jun 17, 2026

Copy link
Copy Markdown
Member

Hi @ianmeigh, we're resetting staging, so this will no longer be staged, shout if there's any issues with this!

@ianmeigh ianmeigh force-pushed the feature/carbon-impact-setting branch from 74c4703 to 5252a6c Compare June 19, 2026 09:19
@ianmeigh

Copy link
Copy Markdown
Collaborator Author

Rebased against main branch

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