Skip to content

[#488] Add Share to X, Farcaster, and Copy Link buttons#494

Merged
realproject7 merged 2 commits intomainfrom
task/488-share-buttons
Mar 24, 2026
Merged

[#488] Add Share to X, Farcaster, and Copy Link buttons#494
realproject7 merged 2 commits intomainfrom
task/488-share-buttons

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Creates ShareButtons component with three share options in a row: Share to X, Farcaster, Copy Link
  • Share to X: Opens Twitter intent URL with pre-filled text and story link
  • Share to Farcaster: Uses SDK composeCast() when in Farcaster client, falls back to farcaster.com intent URL on web
  • Copy Link: Copies story URL to clipboard with "Copied!" confirmation feedback (2s timeout)
  • Replaces ShareToFarcaster usage in story page (both mobile and desktop sidebar)
  • Matches PlotLink's existing button styling (border-border bg-surface pattern)

Fixes #488

Test plan

  • Build passes (next build)
  • All three buttons visible on story page (mobile + desktop sidebar)
  • Share to X opens Twitter compose with story text + URL
  • Share to Farcaster works via SDK in Warpcast, via intent URL on web
  • Copy Link copies URL, shows "Copied!" confirmation for 2 seconds

🤖 Generated with Claude Code

Replace single ShareToFarcaster button with three-button share group:
- Share to X (Twitter intent URL)
- Farcaster (SDK composeCast in-app, farcaster.com intent on web)
- Copy Link (clipboard with confirmation toast)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 24, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 24, 2026 11:19am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

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

LGTM. Clean component — three buttons with consistent styling, proper platform detection. X uses intent URL with text-embedded link, Farcaster uses SDK composeCast in-app with intent fallback on web, Copy Link has clipboard API with 2s confirmation. SVG icons are clean. Old ShareToFarcaster correctly replaced in both mobile and desktop sidebar slots. No issues.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

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

Verdict: REQUEST CHANGES

Summary

The share-button behavior looks reasonable, but the component placement does not match the ticket: on desktop the buttons are still in the sidebar instead of below the chapters section.

Findings

  • medium src/app/story/[storylineId]/page.tsx:185 renders ShareButtons inside the desktop sidebar, while issue #488 explicitly asks for the three buttons to be added "below the chapters section." The current PR only places them below the chapters on mobile; desktop users still see the controls detached from the story content in the aside.
    • File: src/app/story/[storylineId]/page.tsx:185
    • Suggestion: render the share group in the main content flow beneath the chapter list/comments for all breakpoints, rather than only in the desktop sidebar.

Decision

Request changes because the PR does not place the share controls where #488 specifies on desktop.

Remove share from desktop sidebar and show in main story flow
beneath chapter list on all screen sizes per review feedback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

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

Verdict: APPROVE

Summary

The follow-up revision moves the share group into the main story flow below the chapters and removes the duplicate sidebar placement on desktop. The three-button share behavior remains aligned with the issue requirements.

Findings

  • None.

Decision

Approve because the previously requested placement fix is now in place and #488 is ready from a code review perspective.

@realproject7 realproject7 merged commit 8675316 into main Mar 24, 2026
5 checks passed
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.

Add share to X and copy link buttons alongside Farcaster share

2 participants