From 563d0789d013a5f84825e2104f5b772480818bcf Mon Sep 17 00:00:00 2001 From: alexandrev-tibco Date: Tue, 14 Apr 2026 10:00:56 +0200 Subject: [PATCH] Add user feedback improvements: server error reporting, Clarity analytics, usage survey - Auto-report link on 5xx/network errors: pre-fills GitHub issue with version, error, and stylesheet snippet - Microsoft Clarity: conditional on VITE_CLARITY_ID env var, loaded after page load - Usage survey: appears after 3 successful transforms, fires GA4 event, one-shot (stored in localStorage) - 27 tests passing (10 new tests covering buildBugReportUrl, server error detection, survey lifecycle) --- frontend/index.html | 11 ++ frontend/src/App.jsx | 49 ++++++++ frontend/src/App.test.jsx | 108 ++++++++++++++++- frontend/src/components/UsageSurvey.jsx | 41 +++++++ frontend/src/components/UsageSurvey.test.jsx | 46 ++++++++ frontend/src/style.css | 116 +++++++++++++++++++ 6 files changed, 369 insertions(+), 2 deletions(-) create mode 100644 frontend/src/components/UsageSurvey.jsx create mode 100644 frontend/src/components/UsageSurvey.test.jsx diff --git a/frontend/index.html b/frontend/index.html index d56b6894..9bf0acc8 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -103,6 +103,17 @@ } +