ChildMindInstitute / mindlogger-applet-builder

Browser-based interface for building MindLogger applets
Other
2 stars 0 forks source link

The default string has not appeared after the user entered a Score Title and created a valid Score ID #1062

Closed natalia-muzyka closed 2 years ago

natalia-muzyka commented 2 years ago

Steps to reproduce

  1. Open a site and log in https://admin-staging.mindlogger.org/
  2. Create a new activity
  3. Open Configurable report
  4. Add Score section
  5. Enter valid title
  6. Pay attention to the Show message markdown box

Actual result The default string has not appeared after the user entered a Score Title and created a valid Score ID

Expected result When the user enters a Score Title and creates a valid Score ID, populate this markdown editor with the default string:

<h3 style=”color:#0067a0”> {Score Title} </h3>

The subject’s score on the **{Score Title}** subscale was  {Score ID}.

This only happens the first time Score Title/Score ID is created. If the user were to edit the Score Title/Score ID afterwards, the content in this markdown message editor will NOT be overwritten.

Requirements (report components / Score component): https://www.figma.com/file/VYuZ9vFaPfK6JnXeAXG8wW/Pre-SRC-Features?node-id=2%3A3060

Video: https://www.screencast.com/t/wbt5w9jbU

Environment: https://admin-staging.mindlogger.org/ Win 10 / Chrome 103

TatianaBessonova commented 2 years ago

The default string appears but not generated properly:

  1. Only first letter of the title is included. Should be generated on blur.
  2. The message should appear and the auto-generated strings should be updated (score and score condition sections) once calculation type is changed . Environment: https://admin-staging.mindlogger.org/ App builder v0.18.10-alpha Win 10, Chrome 1061062test.png
TatianaBessonova commented 2 years ago

Verified as fixed. The default string is properly generated on blur from the title field. Score ID is updated in markdown when a user confirms updates. Environment: https://admin-staging.mindlogger.org/ Applet builder v0.18.10-beta Win 10, Chrome

natalia-muzyka commented 2 years ago

Verified as fixed. Environment: https://admin-staging.mindlogger.org/ Applet builder v0.18.10-beta Win 10 / Chrome 106 macOS 10 / Chrome 106 / Safari 13.1.2