Click to copy code block from AI chat
Nobody has claimed this yet.
- Dominant language
- Elixir
- Stars
- 296
- Forks
- 86
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 50
Description
As an AI chat user, I'm constantly asking for OpenFn to suggest code for me to test out. There's a click-to-copy button, but it copies the whole message. I'd like to be able to copy just the code in the code block.
See the "copy" button there? It's for the whole message. I'd like something like that for only the code in the code block above so I can paste it where I want in the expression.
(Later, we expect to suggest the new code directly in the expression editor and have the user accept/reject.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; start by locating the AI chat interface and its existing whole-message copy control. Confirm how code blocks are rendered and define done as allowing a user to copy only the contents of an individual code block without copying the surrounding message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- ai, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100