Simple App Feedback Widget

Simple App Feedback Widget (ODC)

Stable version 0.1.10 (Compatible with ODC)
Uploaded on 11 Apr (2 weeks ago) by Truewind
Simple App Feedback Widget

Simple App Feedback Widget (ODC)

Details
Detailed Description

Bring back App feedback collection functionality: Improve feedback collection with the Simple App Feedback Component. This reusable block adds a floating button triggering a movable popup for user comments. It captures annotated screenshots (via html2canvas, with mouse/touch drawing) and essential metadata (URL, screen/window size, browser, OS, language, etc.). Data (comment, image, metadata) is passed via an event, ready for submission to the Simple App Feedback Backoffice using its `SubmitFeedback` Service Action.

Limitations
Release notes 
  1. Prevent Duplicate Element Creation:

    • The primary change is within the renderFeedbackWidget function. Instead of unconditionally creating the feedbackButton and feedbackBox elements every time the function runs, the code now first checks if elements with those IDs already exist in the document (document.getElementById).
    • The document.createElement logic for the button and the box is now wrapped in an if (!elementExists) block. This ensures these core elements are only created once, preventing duplicates if renderFeedbackWidget is called multiple times.
    • Console logs were added to indicate whether existing elements were found or new ones were created.
  2. Click-to-Move Fix:

    • Inside the moveHandler function (within makeClickableToMove), a new check was added: if (targetElement === drawingCanvas) { return; }. This specifically prevents the click-to-move action from triggering if the user's click or touch release happens directly on the drawing canvas element, even if drawing isn't currently enabled. This addresses the bug where releasing the mouse after drawing moved the box.
  3. Added descriptions to elements