Skip to content

Add a "Copy" button to chat answers #1

Description

@sengtha

What

Add a small Copy button to each assistant answer in the chat, so users can copy a reply (with its text) to the clipboard.

Why

Answers are often worth saving or pasting elsewhere; there's currently no quick way to copy one.

Where to start

  • src/views/ChatView.tsx — where assistant messages are rendered.
  • Use the browser navigator.clipboard.writeText(...).
  • Add an en/km string for the button label in src/i18n/en.ts and src/i18n/km.ts (see existing nav*/button strings for the pattern).
  • Style it subtly to match the existing message UI in src/styles.css.

Acceptance

  • A copy control appears on assistant answers, copies the answer text, and gives brief visual feedback (e.g. "Copied").
  • Works on mobile-width screens; bilingual label.
  • npm run typecheck and npm run build pass.

Good first issue — small, self-contained UI change. Ask questions on the issue if anything's unclear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions