Commit 3cdb666
WT-514 - Anonym Pages In CMS (#16958)
* add wagtail-thumbnail-choice-block to the project
* add an AnonymIndexPage to the project
* add cards to AnonymIndexPage
* add a stats list to AnonymIndexPage
* add a people list to AnonymIndexPage
* add call to action block to AnonymIndexPage
* for better clarity, rename AnonymIndexPage's sections field to content
* update labels for better clarity
* add help text to CallToActionBlock's heading field
* rename constant for better clarity
* remove commented-out code
* fix lint errors
* fix Docker build error due to missing staticfiles
* fix frontent lint issues by making CSS classes lowercase
* fix lint error
* add unit tests for remove_p_tag template tag
* make sure license exists in new test file
* make the CardsListBlock a child of a SectionBlock
* fix reference to section field in template
* make a couple block labels visible when collapsed
* add theme icons to repository
* make section content not required, since it sometimes needs to be not required
* only show icon element if icon is set
* make sure first section heading is an h1 element, and others are h2 elements
* change CardsListBlock.cards to be a StreamBlock, to better handle the need for other card types in the future
* update body class to be anonym-specific
* correctly reference icon card block value in template
* make sure AnonymIndexPage can be added in production
* make sure AnonymIndexPage is included in db export script
* make instances of AnonymIndexPage more easily identifiable by setting verbose_name
* Anonym Part 2: Top & Bottom Page In CMS (#16961)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* update body class to be anonym-specific
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* Anonym Part 3: Content Page In CMS (#16962)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* Anonym Part 4: Navigation (#16964)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* Anonym Part 5: About Page (#16965)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* Anonym Part 6: Static Pages (#16967)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* add ability to create static pages as AnonymIndexPage children
* fill in content for static pages
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make sure AnonymStaticPage can be added in production
* make sure AnonymStaticPage is included in db export script
* make sure that there is only 1 AnonymNewsPage and 1 AnonymContactPage
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* Anonym Part 7: Article Page (#16968)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* add ability to create static pages as AnonymIndexPage children
* fill in content for static pages
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make sure AnonymStaticPage can be added in production
* make sure AnonymStaticPage is included in db export script
* make sure that there is only 1 AnonymNewsPage and 1 AnonymContactPage
* add AnonymArticlePage to project, with ability to add rich text blocks to sections
* update advertising pages to pass CSS class to notification snippet
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* Anonym Part 8: More Changes (#16969)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* add ability to create static pages as AnonymIndexPage children
* fill in content for static pages
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make sure AnonymStaticPage can be added in production
* make sure AnonymStaticPage is included in db export script
* make sure that there is only 1 AnonymNewsPage and 1 AnonymContactPage
* add AnonymArticlePage to project, with ability to add rich text blocks to sections
* update advertising pages to pass CSS class to notification snippet
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* make CMS process DRYer by updating PeopleListBlock to reference Person objects
* make sure migration has a license
* WT-514 Anonym CSS (#16966)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* Initial CSS implementation
* Match header style to Figma
Note: This attempts to reconcile differences between the Figma design and the m24 code this was based on
* Section styles
Increase fidelity of section styles to match Figma
* Card list styles
Increase fidelity of card list styles to match Figma
* Add section themes
* Add stats table styles
* Increase anonym homepage figma fidelity
---------
Co-authored-by: Dmitriy Chukhin <6025153+dchukhin@users.noreply.github.com>
* reorder migrations after merge
* fix lint errors
* Anonym Part 9: Anonym Directory (#16989)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* add ability to create static pages as AnonymIndexPage children
* fill in content for static pages
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make sure AnonymStaticPage can be added in production
* make sure AnonymStaticPage is included in db export script
* make sure that there is only 1 AnonymNewsPage and 1 AnonymContactPage
* add AnonymArticlePage to project, with ability to add rich text blocks to sections
* update advertising pages to pass CSS class to notification snippet
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* make CMS process DRYer by updating PeopleListBlock to reference Person objects
* make sure migration has a license
* create anonym app for anonym files
* move anonym files to anonym app
* make sure to preserve anonym data in database
* add comment about use of db_table in models file
* update imports in scss files based on new directory structure
* fix lint error
* add license to files that are missing it
* remove unused anonym templates from mozorg app
* move Person snippet to anonym app
* add removed migration for moving person snippet to anonym app
* Anonym Part 10: Custom Table Component (#16990)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* add ability to create static pages as AnonymIndexPage children
* fill in content for static pages
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make sure AnonymStaticPage can be added in production
* make sure AnonymStaticPage is included in db export script
* make sure that there is only 1 AnonymNewsPage and 1 AnonymContactPage
* add AnonymArticlePage to project, with ability to add rich text blocks to sections
* update advertising pages to pass CSS class to notification snippet
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* make CMS process DRYer by updating PeopleListBlock to reference Person objects
* make sure migration has a license
* create anonym app for anonym files
* move anonym files to anonym app
* make sure to preserve anonym data in database
* add comment about use of db_table in models file
* update imports in scss files based on new directory structure
* update imports in scss files based on new directory structure
* use custom component for comparison table on AnonymTopAndBottomPage, so we have more control over HTML and user experience
* remove wagtail.contrib.table_block from project, as it is no longer used
* fix lint error
* add license to files that are missing it
* remove unused anonym templates from mozorg app
* remove unused anonym templates from mozorg app
* move Person snippet to anonym app
* move Person snippet to anonym app
* reorder migrations after merge
* add removed migration for moving person snippet to anonym app
* add missing migration
* add license to new migration
---------
Co-authored-by: Kasey Kelly <kasey@servee.com>
* Anonym Part 11: Backend Updates (#17003)
* add an AnonymTopAndBottomPage to the project
* add counter to section templates
* only show icon element if icon is set
* add CSS class to sections with 'top glow' theme
* add table block to SectionBlocks
* make sure first section heading is an h1 element, and others are h2 elements on AnonymTopAndBottomPage
* add an AnonymContentSubPage to the project
* add toggleable items component to AnonymContentSubPage
* update migration, since CardsListBlock.cards is now a StreamBlock, to better handle the need for other card types in the future
* add logo cards, to allow creating case study cards on AnonymContentSubPage
* update toggle to handle dark and light icons automatically
* add a configurable navigation to anonym pages
* make sure migration has a license
* update body class to be anonym-specific
* update body class to be anonym-specific
* add a PersonCard, to allow adding cards with people's photos to the 'About' page
* add a TwoColumnBlock, to allow adding them to 'About' page
* add ability to create static pages as AnonymIndexPage children
* fill in content for static pages
* make sure AnonymTopAndBottomPage can be added in production
* make sure AnonymTopAndBottomPage is included in db export script
* make sure AnonymContentSubPage can be added in production
* make sure AnonymContentSubPage is included in db export script
* make sure AnonymStaticPage can be added in production
* make sure AnonymStaticPage is included in db export script
* make sure that there is only 1 AnonymNewsPage and 1 AnonymContactPage
* add AnonymArticlePage to project, with ability to add rich text blocks to sections
* update advertising pages to pass CSS class to notification snippet
* make instances of AnonymTopAndBottomPage more easily identifiable by setting verbose_name
* make instances of AnonymContentSubPage more easily identifiable by setting verbose_name
* make CMS process DRYer by updating PeopleListBlock to reference Person objects
* make sure migration has a license
* create anonym app for anonym files
* move anonym files to anonym app
* make sure to preserve anonym data in database
* add comment about use of db_table in models file
* update imports in scss files based on new directory structure
* update imports in scss files based on new directory structure
* use custom component for comparison table on AnonymTopAndBottomPage, so we have more control over HTML and user experience
* remove wagtail.contrib.table_block from project, as it is no longer used
* fix lint error
* add license to files that are missing it
* remove unused anonym templates from mozorg app
* remove unused anonym templates from mozorg app
* move Person snippet to anonym app
* move Person snippet to anonym app
* reorder migrations after merge
* support HTML-safe text in Person.description field
* support HTML-safe text in Person.description field
* remove PeopleListBlock.text, since it is not used
* add a field to link to URL to learn more about a Person
* make two column block subheading text optional
* make contact page title and subtitle editable
* make contact page fields editable
* make the news page an index page for news items
* exclude AnonymNewsItemPages with a link from the sitemap
* change StatsListBlock to NewsItemListBlock, so users can choose news items whose stats appear in the section
* skip paths that do not have translations in get_static_urls()
* fix lint errors
* rename AnonymArticlePage to AnonymCaseStudyItemPage
* replace LogoCardBlock with CaseStudyItemListBlock, so users can choose case studies to add to a section
* create an AnonymCaseStudyPage as an index page for case studies
* make AnonymContentSubPage sure loads correct JS file
* when >3 case studies in block, show link to case study page
* commit template tags file to repository
* make code DRYer by ruusing the same template for AnonymNewsItemPage and AnonymCaseStudyItemPage
* remove unused anonym logo from repository
* add removed migration for moving person snippet to anonym app
* correct template definition for AnonymCaseStudyItemPage
* add missing migration
* reorder migrations after merge
* add license to new migration
* add license to files that are missing it
* fix lint errors
* fix lint errors
* Anonym Part 12: Wagtail Dependencies (#17005)
* for consistency with springfield, add wagtail helper dependencies
* set up wagtail-localize-dashboard on project
* set up wagtail-localize-intentional-blanks on project
* create fixtures for tests and create test anonym pages with a management command (#17008)
---------
Co-authored-by: Kasey Kelly <kasey@servee.com>
* anon homepage frontend revisions
* CSS and model revisions
* license info added
* Update _misc.scss
* form fill icon fix
* avoid generic wrapper class names by using include_block for section blocks
* removing bad icon link
* fix lint errors
* removing another missing icon from protocol
* removing comments
* Create 0020_alter_anonymcasestudyitempage_content_and_more.py
* Update 0020_alter_anonymcasestudyitempage_content_and_more.py
* fix ruff formatting
* use latest version of wagtail-thumbnail-choice-block for CSS improvments
* fix ruff formatting issues
* use latest version of wagtail-localize-intentional-blanks
* contact page, solutions page, about page styles
* logo list block added
* news index page added
* news WIP
* requirements updated
* news styles, mobile styles
* for better clarity, rename NewsItemListBlock to be StatItemListBlock
* make code DRYer by having AnonymCaseStudyItemPage and AnonymNewsItemPage inherit from common abstract class
* support either AnonymNewsItemPage or AnonymCaseStudyItemPage in StatCardListBlock
* support either AnonymNewsItemPage or AnonymCaseStudyItemPage in LogoListBlock
* update tests based on recent changes to models
* support ordering by showing AnonymNewsItemPage publication date in Wagtail
* make selecting featured news item more explicit
* remove AnonymTopAndBottomPage, since it no longer has its own design
* squash anonym migrations, so they are easier to read
* [reset-db]
* comparison table revisions
* article page layout
* news page CMS revisions
---------
Co-authored-by: Jo Sprague <github@iamlocaljo.com>
Co-authored-by: Kasey Kelly <kasey@servee.com>1 parent 5729251 commit 3cdb666
File tree
117 files changed
+11117
-125
lines changed- bedrock
- anonym
- fixtures
- management
- commands
- migrations
- templates/anonym
- blocks
- article
- form_fields
- includes
- templatetags
- tests
- base
- templatetags
- tests
- mozorg
- migrations
- templates/mozorg/cms
- advertising
- snippets
- settings
- sitemaps
- tests
- bin
- media
- css
- anonym
- mozorg/ads
- img
- icons
- logos
- nyt
- snapchat
- wsj
- mozorg/anonym
- js/anonym
- requirements
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
117 files changed
+11117
-125
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments