adoptium / adoptium/aqa-test-tools
Leverage CopyToClipboard module
- Dominant language
- Jupyter Notebook
- Stars
- 33
- Forks
- 97
- Avg merge
- 7h 9m
- Merged PRs (30d)
- 5
Description
[CopyToClipboard](https://www.npmjs.com/package/react-copy-to-clipboard) should be used instead of using document.getElementById
https://github.com/adoptium/aqa-test-tools/blob/cb13a805965df94d3ce385f4022d79fac4607ebb/test-result-summary-client/src/Build/ReleaseSummary.jsx#L187-L222
Example of using CopyToClipboard module
https://github.com/adoptium/aqa-test-tools/blob/cb13a805965df94d3ce385f4022d79fac4607ebb/test-result-summary-client/src/Build/GitNewIssue.jsx#L129
Contributor guide
Research direction
Start in test-result-summary-client/src/Build/ReleaseSummary.jsx at lines 187-222 and compare the existing CopyToClipboard usage in test-result-summary-client/src/Build/GitNewIssue.jsx around line 129. Replace the current document.getElementById-based clipboard handling with the module usage, and consider the work complete when ReleaseSummary follows the same pattern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100