adoptium / adoptium/aqa-test-tools

Leverage CopyToClipboard module

Open
#942 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.