penpot/frontend
Gabriel Ribeiro 4d0486e811
🐛 Show MCP URL copied toast only after a successful copy (#13360)
The copy button for the MCP server URL in Settings > Integrations showed
the "copied" toast without waiting for the clipboard write, and left the
rejected promise unhandled when the write failed. Error reports show this
on SaaS over HTTPS too, with NotAllowedError (write permission denied).

Wait for the write, show the success toast and track the event only when
it resolves, and show an error toast when it rejects, as the token copy
button in the same file already does.

AI-assisted-by: claude-opus-5-5

Signed-off-by: Gabriel Ribeiro <267068126+gabrielribeiro3105@users.noreply.github.com>
2026-11-26 10:09:04 +01:00
..
2026-04-07 21:35:00 +02:00
2026-11-20 09:53:37 +01:00
2026-11-20 09:53:37 +01:00