opensafely-core / opensafely-core/opencodelists
Add copy-to-clipboard to codes in tree view
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 60
- Forks
- 16
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 17
Description
Why are we doing this?
Fairly often you want to copy-paste the numerical code like the one shown here:
The UX for this would be marginally nicer if the codes were clickable and this copied the code to the clipboard for pasting elsewhere. Either the text itself or a button. The colored text also looks like you can interact with it and it's a little bit sad that nothing happens when you do.
Feels like a fairly minor change but sure what support there in Tailwind, the right approach etc. A search shows packages offering this (like this one) so I suppose it's not native Tailwind, but we could use a package or write something.
What are we doing?
As above.
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
Start by locating the tree-view implementation and reviewing the Tailwind and clipboard options referenced in the issue, including the Flowbite example. Done means the numerical codes in the tree view can be activated to copy their text for pasting elsewhere, either through the text or a button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tailwindcss
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100