Skip to content

(#5183) Migrates biography body to ncids full wysiwyg - #5334

Open
dlescarbeau wants to merge 3 commits into
developfrom
ticket/5183-migrate-biography-body-ncids
Open

(#5183) Migrates biography body to ncids full wysiwyg#5334
dlescarbeau wants to merge 3 commits into
developfrom
ticket/5183-migrate-biography-body-ncids

Conversation

@dlescarbeau

Copy link
Copy Markdown
Contributor

Closes #5183

@dlescarbeau
dlescarbeau force-pushed the ticket/5183-migrate-biography-body-ncids branch 5 times, most recently from 38d9d87 to 365b961 Compare August 12, 2026 17:15
@dlescarbeau
dlescarbeau requested a lite review from Copilot August 12, 2026 18:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Biography pages to use the NCIDS Full WYSIWYG for the body field and aligns the biography page rendering/asset loading with the “migrated inner page” approach used elsewhere in ncids_trans.

Changes:

  • Switch Biography body text format/config (and sample YAML content) from full_html to ncids_full_html.
  • Update Biography theming/layout to render the body directly and conditionally render the legacy press-info region, adding new block/region templates + styling for the press contact UI.
  • Update ncids_trans front-end biography entrypoint to remove legacy styles and add NCIDS body-related JS (definitions + body link analytics).

Reviewed changes

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

Show a summary per file
File Description
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/templates/layout/regions/region--bio_press_info.html.twig Adds a wrapper for the bio press-info region so it can be styled with the new component class.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/templates/content/biography/node--cgov-biography--full.html.twig Adjusts Biography full node layout and renders body/press-info region inline.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/templates/block/ncids/block--bio-press-info.html.twig Adds a block override for the bio press-info block output.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/ncids_trans.theme Treats biographies as “migrated inner pages” for page template suggestions.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/ncids_trans.libraries.yml Updates Biography library dependency to ncids-inner-minimal.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/lib/components/cgdp-press-contact/index.scss Introduces the new press-contact component styling.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/entrypoints/biography/biography.ts Removes legacy stylesheet import; adds definition + body link analytics initialization.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/entrypoints/biography/biography.scss Forwards new press-contact + NCIDS full HTML editor + definition styles.
docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end/src/entrypoints/biography/biography-legacy.scss Removes legacy SCSS entrypoint.
docroot/profiles/custom/cgov_site/modules/custom/cgov_yaml_content/content/*.content.yml Updates sample content bodies to ncids_full_html (and toggles bio press-info on one test page).
docroot/profiles/custom/cgov_site/modules/custom/cgov_biography/config/install/field.field.node.cgov_biography.body.yml Restricts Biography body allowed formats to ncids_full_html.
docroot/profiles/custom/cgov_site/modules/custom/cgov_biography/cgov_biography.install Updates press-info block setup for ncids_trans and adds an update hook to change stored body format.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +51 to +55
{% if content.field_phone_number|field_value or content.field_email_address|field_value %}
<a href="tel:{{- content.field_phone_number|field_value -}}" rel="nofollow">{{ content.field_phone_number }}</a>
{{ (content.field_phone_number|field_value and content.field_email_address|field_value)? '<span class="contact-divider">|</span>': '' }}
{{ content.field_email_address }}
{% endif %}
@dlescarbeau
dlescarbeau force-pushed the ticket/5183-migrate-biography-body-ncids branch 2 times, most recently from 7ac50f8 to 5ede06a Compare August 12, 2026 18:57
@dlescarbeau
dlescarbeau force-pushed the ticket/5183-migrate-biography-body-ncids branch from 5ede06a to c8d6ebf Compare August 13, 2026 15:09
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.

Story: Migrate Biography Body Text to NCIDS

2 participants