Console reports successful copies when clipboard writes fail
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Reproduce the failure on the playground URL using the DevTools override shown in the issue, then trace the handler for the Copy text button. Make the success message depend on the clipboard write resolving and report a rejected write; verify both outcomes in the UI. Pull request #337 is already open for this issue.
Written by the indexing model from the issue text.
Description
On https://promplate.vercel.app/playground, wait for the initial console commands, then make clipboard writes fail in DevTools:
navigator.clipboard.writeText = () => Promise.reject(new DOMException('Write permission denied', 'NotAllowedError'));
Activate a Copy text button. The UI reports successfully copied 1 line to clipboard, while the rejected write produces an unhandled promise rejection. The handler shows success before calling writeText and never awaits its result.
Show success only after the write resolves, and report failures.
- Dominant language
- Svelte
- Stars
- 2
- Forks
- 0
- Avg merge
- 18h 1m
- Merged PRs (30d)
- 18
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from promplate/site
-
Highlighted comments fall below the minimum text contrastPossibly taken @CNSeniorious000 claimed this 18 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
promplate/site#315 · 1 comment ·
Maintainers usually reply within 1 day
-
Monaco word completion stalls because its worker fails to loadPossibly taken @CNSeniorious000 claimed this 5 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 66/100
promplate/site#350 · 1 comment ·
Maintainers usually reply within 1 day
-
Avoid separate external font requests on the docs homepagePossibly taken @CNSeniorious000 claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
promplate/site#348 · 1 comment ·
Maintainers usually reply within 1 day
-
Prerendered share-image metadata uses a placeholder originPossibly taken @CNSeniorious000 claimed this 5 days ago. Open
Difficulty 1/5 1-3 hours Newbie friendliness 35/100
promplate/site#346 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Share-image preview builds invalid URLsPossibly taken @CNSeniorious000 claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
promplate/site#344 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
bug image layout P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
area:web p2 product:business triage:active type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cuadrao-ai/argus#2228 ·
Maintainers usually reply within 1 day
-
.Needs Triage .Team/Metabot Priority:P3 Type:Bug
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
metabase/metabase#87252 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:portal bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hemilabs/ui-monorepo#2695 ·
Maintainers usually reply within 1 day