From bdc27e708e8f9c8fe97ec8341618a874f1407fdb Mon Sep 17 00:00:00 2001 From: rosie yohannan Date: Wed, 17 Jun 2026 18:05:55 +0100 Subject: [PATCH 1/5] feat(ui): add Hotjar feedback button to article footer Replaces the old commented-out Yes/No buttons with a single "Leave feedback" button that fires a Hotjar JS API event (docs_page_feedback) to open a survey popover on click. Co-Authored-By: Claude Sonnet 4.6 --- ui/src/js/16-hotjar-feedback.js | 12 ++++++++++ ui/src/partials/article-footer.hbs | 38 +++++++++++++----------------- 2 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 ui/src/js/16-hotjar-feedback.js diff --git a/ui/src/js/16-hotjar-feedback.js b/ui/src/js/16-hotjar-feedback.js new file mode 100644 index 0000000000..d52f0f71c0 --- /dev/null +++ b/ui/src/js/16-hotjar-feedback.js @@ -0,0 +1,12 @@ +;(function () { + 'use strict' + + var btn = document.getElementById('hotjar-feedback-btn') + if (!btn) return + + btn.addEventListener('click', function () { + if (typeof window.hj === 'function') { + window.hj('event', 'docs_page_feedback') + } + }) +})() diff --git a/ui/src/partials/article-footer.hbs b/ui/src/partials/article-footer.hbs index d5b718cfaf..a6edea4035 100644 --- a/ui/src/partials/article-footer.hbs +++ b/ui/src/partials/article-footer.hbs @@ -1,27 +1,21 @@ -