Skip to content

Add end-of-post social share actions to blog posts#1647

Merged
sanjay-kv merged 4 commits into
mainfrom
copilot/add-social-sharing-buttons
May 22, 2026
Merged

Add end-of-post social share actions to blog posts#1647
sanjay-kv merged 4 commits into
mainfrom
copilot/add-social-sharing-buttons

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

Description

Adds a reusable social share section to blog post pages and moves it to the end of each post, matching the requested compact vertical action layout. The share set now uses X, LinkedIn, email, and copy-link instead of the prior larger button treatment.

Type of Change

  • New feature (e.g., new page, component, or functionality)
  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)
  • Performance optimization (e.g., code splitting, caching)
  • Documentation update (README, contribution guidelines, etc.)
  • Other (please specify):

Changes Made

  • Placement

    • Rendered the share UI from the shared BlogPostItem/Footer wrapper so it appears on every blog post page without touching individual posts.
  • Share actions

    • Reworked the share component into compact circular actions aligned with the requested end-of-post design.
    • Kept X and LinkedIn.
    • Replaced the prior third social action with email.
    • Added copy-link for direct URL sharing.
  • Behavior

    • Derived share URLs from post metadata (title, permalink) so actions are correct per post.
    • Added clipboard failure handling and accessible labels for copy state feedback.
{isBlogPostPage && (
  <SocialShare permalink={metadata.permalink} title={metadata.title} />
)}

Dependencies

  • No new dependencies.
  • No version or configuration changes required.

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 22, 2026 2:59pm

Copilot AI changed the title [WIP] Add social sharing button on blogs and posts Add end-of-post social share actions to blog posts May 22, 2026
Copilot AI requested a review from sanjay-kv May 22, 2026 14:59
@sanjay-kv sanjay-kv marked this pull request as ready for review May 22, 2026 15:02
@sanjay-kv sanjay-kv merged commit 88b23ee into main May 22, 2026
7 checks passed
@sanjay-kv sanjay-kv added the area:db PRs with DB label May 22, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in @recode-web May 22, 2026
@sanjay-kv sanjay-kv moved this to In Progress in @recode-web May 22, 2026
@sanjay-kv sanjay-kv added this to the Winter of recode milestone May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:db PRs with DB

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Social sharing button on blogs and posts

2 participants