gsxdsm
db9a9453db
FN-7887: migrate ChatView copy-response to shared clipboard helper
Fixes ChatView's provider-response copy button falsely reporting failure on non-secure origins (mobile/HTTP) by routing through the shared clipboard utility instead of calling navigator.clipboard directly.
- Replaced direct navigator.clipboard.writeText call in handleCopyResponse with the shared copyTextToClipboard helper (secure-context guard + execCommand fallback)
- Added regression tests covering secure Clipboard API success, execCommand fallback success, and combined failure paths
- Added changeset documenting the fix as the last direct clipboard caller found during the FN-7885 preflight
Files changed:
.changeset/fn-7887-chatview-clipboard.md | 7 +
packages/dashboard/app/components/ChatView.tsx | 16 +-
.../__tests__/ChatView.copy-response.test.tsx | 169 +++++++++++++++++++++
3 files changed, 183 insertions(+), 9 deletions(-)
Fusion-Task-Id: FN-7887
Fusion-Task-Lineage: bff1084b-7c64-420d-9479-bb8c4c584175
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-12 17:59:19 -07:00
..
2026-07-12 17:02:33 -07:00
2026-07-11 23:50:00 -07:00
2026-07-12 14:42:09 -07:00
2026-07-12 17:59:19 -07:00
2026-07-12 14:42:09 -07:00
2026-07-11 23:50:00 -07:00
2026-07-12 17:39:29 -07:00
2026-07-12 16:48:04 -07:00
2026-07-11 23:50:00 -07:00
2026-07-11 23:50:00 -07:00
2026-06-08 15:19:27 -07:00
2026-07-11 23:50:00 -07:00