feat(blog): show writer reviewer editor on human articles

Merged
RI
2mo ago
+155-34

Summary

Human-written blog articles now show a three-person editorial credits block (writer, reviewer, editor) instead of a single author line. AI articles keep the existing single-author byline when frontmatter sets origin: ai.

Changes

  • Add shared HUMAN_EDITORIAL_TEAM constant with Martin (writer), Valeria (reviewer), and Jordan (editor)
  • Add BlogEditorialByline and BlogAuthorByline components
  • Gate display with optional origin frontmatter (human default; ai keeps legacy author UI)
  • Add i18n keys: article_credits, blog_role_writer, blog_role_reviewer, blog_role_editor

Coordination with human/AI listing PR

This PR only handles the byline UI. A separate PR can tag posts with origin: human | ai. Until then, posts without origin are treated as human and show the editorial team.

Screenshots

Before (single author, desktop sidebar)

Before: single author byline

After (editorial credits, desktop sidebar)

After: writer reviewer editor byline

After (mobile header area)

After: mobile editorial credits

Test plan

  • bun run build in apps/web
  • Verified /blog/capacitor-comprehensive-guide/ shows three-person credits
  • Posts with origin: ai should keep single-author byline (once tagged in the listing PR)
Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • New Features
    • Added localized editorial credits for writers, reviewers, and editors.
    • Blog posts now display either an editorial team byline or an author byline.
    • Editorial bylines include avatars, roles, names, and optional profile links.
    • Added support for identifying human- and AI-origin blog posts.