Skip to content

feat: Add 'Copy Markdown' button to LLM narrative card - #492

Merged
eshaanag merged 2 commits into
eshaanag:mainfrom
Chigael:feat/copy-markdown-narrative-card
Sep 1, 2026
Merged

feat: Add 'Copy Markdown' button to LLM narrative card#492
eshaanag merged 2 commits into
eshaanag:mainfrom
Chigael:feat/copy-markdown-narrative-card

Conversation

@Chigael

@Chigael Chigael commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Program

  • ECSoC 2026
  • ELUSOC 2026
  • Regular contribution (not part of a program)

What does this PR do?

Enhances UI by adding a "Copy Markdown" button adjacent to the narrative card title.
Key Changes

  • frontend/src/components/NarrativeCard.tsx:
    • Created a handleCopy helper method utilizing navigator.clipboard.writeText.
    • Displayed copy status feedback (Copied!) with Check and Copy icons from lucide-react.
    • Button is rendered alongside the title header whenever narrative content (text) exists.

Related issue

Closes #310

Checklist

  • I have added the correct program label (ECSoC26 or ELUSOC) to this PR
  • I tested this change locally
  • This PR addresses exactly one issue/feature (not a bundle of unrelated changes)
  • I did not open this PR purely to farm contribution counts

@Chigael
Chigael requested a review from eshaanag as a code owner August 31, 2026 14:01
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Chigael is attempting to deploy a commit to the Eshaan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the frontend Frontend changes label Aug 31, 2026
@eshaanag eshaanag added ECSoC26 Required tag — marks PR as counted for ECSoC 2026 scoring ECSoC26-L1 Easy — 5 pts (auto-applied by Sentinel) good-pr Bonus XP: exceptional PR (+15 XP) good-ui Bonus XP: notable UI contribution (+25 XP) labels Sep 1, 2026
@eshaanag
eshaanag merged commit af2296d into eshaanag:main Sep 1, 2026
12 of 16 checks passed
@ecsoc-sentinel ecsoc-sentinel Bot added ECSoC26-L2 Medium — 10 pts (auto-applied by Sentinel) and removed ECSoC26-L1 Easy — 5 pts (auto-applied by Sentinel) labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26-L2 Medium — 10 pts (auto-applied by Sentinel) ECSoC26 Required tag — marks PR as counted for ECSoC 2026 scoring frontend Frontend changes good-pr Bonus XP: exceptional PR (+15 XP) good-ui Bonus XP: notable UI contribution (+25 XP)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add a 'Copy Markdown' button to the LLM narrative card

2 participants