feat: #3628418 Match the article banner to the design: author and Share on one row, and the image caption

Issue: https://www.drupal.org/project/rightup/issues/3628418

Matches the full content view of a news article to the design (media-banner/article-node), in canvas.content_template.node.news.full only. The template is defined twice, and both now carry the same component tree: config/canvas.content_template.node.news.full.yml, and the config action in recipe.yml (the base recipe varbase_news_base already ships this template, so on install the action is what updates it). The heading lines of the Editor's picks and On display lists use the tertiary color, as in the design.

  • Banner: the left column is a Group that fills the height of the image and its caption. The title, summary and date sit at the top; the author and the Share links sit in one row at the bottom, between two dividers in the theme's default hairline (#e6e6e9, as in the design), with Share aligned to the end. The author reads "Chiara Romano" alone in the medium weight, through the Byline options added in vartheme_bs5_rightup!63 (merged) (merged). The section stretches its columns so the Group can fill the height.
  • The date is 14px (fs-6) in the body color, as in the design.
  • Type sizes and spacing from the design frame (media-banner/article-node): the summary is 20px (fs-4); the caption is 16px (fs-5) italic at 0.75 opacity and sits 24px under the image (the image and caption are in a Group with gap-4, since the Text component has no margin option); the text column keeps 144px from the image (pe-5 on the column groups), so the text column and the image are 516px and 612px wide against the design's 528px and 640px.
  • Spacing: the banner and the section gaps use the nearest spacer to the design's 60px, 40px and 80px gaps: 16px between title and summary, 24px between summary and date, banner padding and margin, and the margins between the body, the newsletter band and the On display list.
  • The image's title shows under the image as a small italic caption. field.field.media.image.field_media_image has its title field on, so editors can write a caption, and the lead article's image carries the design's caption.
  • Ships the new Byline component version (6e30b9f069cf711d).
  • tests/features/06-content-news/06-02-news-page.feature: the author and Share sit on one row, and the caption shows (new step in tests/step-definitions/article.steps.js).

All the data stays dynamic: the title, summary, date, author, image, caption and share title come from the article's fields.

Checked: on a local Rightup site with this template, the new scenarios pass and the rendered banner matches the design's layout. The component version check passes; Cspell, ESLint and the Cucumber dry run pass locally. The template opens in the Drupal Canvas template editor with the article as preview, without errors, and its heading, author and Share props are bound to the article's fields. Not checked: a fresh install with the new action; the merge request pipeline builds one.

Not matched: the date reads "Jul 16, 2026" in the sans font where the design shows "July 16, 2026" in the serif body font (the Date component hardcodes its M j, Y format and has no font option; a theme change, out of this issue's scope), and the On display list is taller than the design's.

Opening the template in the Canvas editor makes one pending auto-save, because Canvas updates older component versions in the stored tree to the current ones; it is not caused by this change.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading