Skip to content

Conversation

@dchukhin
Copy link
Collaborator

@dchukhin dchukhin commented Nov 4, 2025

If this changeset needs to go into the FXC codebase, please add the WMO and FXC label.

This pull request depends on #16815, which should be reviewed first

One-line summary

This pull request makes the other advertising subpages ('Solutions' and 'Impact') editable through Wagtail.

Significant changes and points to review

Following the work in #16815, this pull request adds:

  • the ContentSubpage as a child of AdvertisingIndexPage
  • a few more blocks that support creating the 'Solutions' and 'Impact' pages:
    • StatisticCalloutBlock and StatisticBlock
    • FeatureListWithModalsBlock, FeatureItemWithModalBlock, and FigureBlock

Issue / Bugzilla link

WT-334

Testing

To test locally,

  1. go to Wagtail and create an "Content subpage" page in the page tree (as a child of an "Advertising index page"). Try to make the content identical to http://localhost:8000/en-US/advertising/impact/.
  2. go to Wagtail and create an "Content subpage" page in the page tree (as a child of an "Advertising index page"). Try to make the content identical to http://localhost:8000/en-US/advertising/solutions/.

lucianoratamero and others added 30 commits October 7, 2025 01:19
…334-cms-components-for-advertising-sub-navigation
…nto WT-334-cms-components-for-advertising-other-sub-pages
since line breaks are needed on the 'Impact' page
since rich text is needed on the 'Impact' page
…334-cms-components-for-advertising-sub-navigation
…f github.com:mozilla/bedrock into WT-334-cms-components-for-advertising-sub-navigation
…nto WT-334-cms-components-for-advertising-other-sub-pages
@dchukhin dchukhin requested review from a team as code owners November 4, 2025 16:48
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

❌ Patch coverage is 88.17568% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.97%. Comparing base (a59a279) to head (31a3237).

Files with missing lines Patch % Lines
bedrock/mozorg/models.py 84.05% 11 Missing ⚠️
bedrock/mozorg/blocks/advertising.py 94.91% 9 Missing ⚠️
bedrock/mozorg/blocks/navigation.py 68.96% 9 Missing ⚠️
bedrock/mozorg/views.py 40.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16848      +/-   ##
==========================================
+ Coverage   79.70%   79.97%   +0.27%     
==========================================
  Files         159      161       +2     
  Lines        8534     8825     +291     
==========================================
+ Hits         6802     7058     +256     
- Misses       1732     1767      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- dev
- test
- stage
- prod
Copy link
Contributor

Choose a reason for hiding this comment

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

Heya - were these changes in action.yaml deliberately backed out, or does this branch need a rebase on main?

env:
LONG_SHA: ${{ needs.build_and_publish_public_images.outputs.long_sha }}
DEPLOYMENT_REALM: ${{ needs.build_and_publish_public_images.outputs.deployment_realm }}
DEPLOYMENT_ENV: ${{ needs.build_and_publish_public_images.outputs.deployment_env }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here - I wouldn't expect us to need to back out these changes. Can we rebase / check 'em please?

@dchukhin dchukhin changed the title WT-334 Build CMS Components For Advertising Subpages WT-334 - Build CMS Components For Advertising Pages - Part 4 Nov 4, 2025
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.

6 participants