Feedback Framework Documentation

About

Today’s web applications, like the ones you are building using Neptune DXP, are used in many different contexts. Due to the heterogeneity of devices that can be used (screen sizes, processing power, operating system), applications can have minor visual problems. This feedback framework allows users to report these problems by giving you tools to show a feedback button in your Launchpad, or application.

FeedbackFW

How it works

Feedback press

When one presses the button 61, a screenshot is automatically generated, and the following dialogue appears,

800

In this dialog, one has the possibility of identifying itself or sending an anonymous feedback. It’s also possible to write or use the speech-to-text functionality to provide feedback like:

  • Steps to reproduce issues.

  • New requirements.

  • Missing Applications.

By pressing the Add annotation button FeedbackAddAnnotations, one can add annotations to the screenshot, improving the quality of feedback.

After inserting all the annotations and the comment, one can submit the feedback by pressing the Send Feedback button FeedbackSubmit.

Annotations

800

It’s possible to change the color used in the annotations by pressing the quick selection buttons AnnotationsQuickSel, or by pressing the Other button AnnotationsColorPicker. In the Other button, one can also choose the line thickness.

300

If, for some reason, one inserts an annotation incorrectly. It’s possible to reset all the annotations by pressing the reset button AnnotationsReset.

To save the annotation and return to the feedback dialog, one needs to press the save button AnnotationsSave

Feedback storage

When one submits feedback, by default, the message is stored in the internal database of the Neptune DXP - Open Edition. The images are saved base64-encoded. To reduce the size of the internal database, it’s possible to keep the images in an Microsoft Azure Blob storage account. We also save the device ID, application name, operating system, version, device type, and position, along with the image, comment, and sender name; this is helpful information that can be very useful when troubleshooting bugs.

tablecontent

View feedbacks

One can view the feedback using the Feedback Viewer application.

FeedbackViwerTile

In there, we will see a list of all the submitted feedbacks. It’s possible to know the date and time of the creation, the name of the application from where the feedback has been triggered, who submitted it, the device type and orientation, and the operating system.

FeedbackList

By selecting the filter expansion button filters , one can filter the feedbacks by application and submitted by.

If one selects any of the feedback items, the detail view opens. In there, it is possible to see who submitted the feedback, the comment that has been given, and the screenshot. To increase the screenshot size, just select the image.

600

Configuration

The Feedback framework can be used in Launchpads or a standalone application. Next, you can find the required steps to enable this framework. By default, the feedbacks are stored in the table feedbackfw_main. In order to save space, it’s possible to keep the images in Microsoft Azure blob.

Launchpad set up

As guidance, we provide a demo Launchpad in this package.

  1. Go to the Cockpit and select the Launchpad where you want to enable the feedback

  2. Navigate to the Enhancement Tab

  3. Select the enhancement "Before update" and enable it by switching to On.

    Enhancement1
  4. Please copy the following code and paste it into the enhancement dialog

    AppCache.Load("feedbackbutton", {
        load: "init",
        startParams: {
            distance_from_bottom: "40px",
            distance_from_right: "40px",
            size: "24px",
            color: "#EBB043",
        }
    });
    It’s possible to adjust the position of the button, the size of the icon, and the color. That is achieved by changing the values provided in the previous code snippet.
  5. Save the changes by pressing the Save button LaunchpadSave

  6. Open the Launchpad, and the Feedback button should be visible on the right lower corner.

Standalone Application set up

  1. Go into the application you want to include the feedback button, and change to edit mode.

  2. Select the Resources folder.

    Resources
  3. Open the context menu by pressing the right mouse button and selecting the application building block option.

    BuildingBlockSel
  4. On the application building block dialog, select UTIL(1), then you will see the Feedback Framework(2), and press it. After selection, press the select Button(3) to copy the content into your application.

    SelFeedbackFW
  5. If your application already contains any sap.m.App or sap.m.SplitApp, please remove the one inserted by the application building block, otherwise drag the one inserted by the application building block into the HTML5 Document.

    moveToHTML
  6. Activate the Application, and it’s ready for testing.

Microsoft Azure blob set up (optional)

One needs to go to the script group FeedBackFW, select the script SaveFeedback and add the following Microsoft Azure configurations:

  • Account name

  • Container name

  • AccountKey

Package Content

Object name Type

feedback_adaptive_edit_withimage

Application, Adaptive framework template

feedbackbutton

Application, Application Building Block

FeedBackFW_List

Adaptive Application

FeedBackFW_Detail

Adaptive Application

FeedBackFW

API

FeedBackFW_Viewer

Connector

FeedBackFW

Connector group

FeedbackDemo

Launchpad

FeedBackFW

Tile group

FeedBackFW_Feedback_List

Tile

feedbackfw_main

Table

FeedBackFW

Script group

SaveFeedback

Script class

FeedBackFW

Media

Known issues

In this current version, the scroll position of the screenshot may be slightly off when we don’t have any application open on the Launchpad.

Dependencies

To use Microsoft Azure blob, the CMS on Microsoft Azure packages need to be installed in your environment.
AzureCMS