ChildMindInstitute / mindlogger-applet-builder

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

Questions are not cleaned up with markdown, tags on the Configurable report page #1055

Closed natalia-muzyka closed 2 years ago

natalia-muzyka commented 2 years ago

Preconditions User is logged in on admin panel There is the activity with the radio, checkbox, slider, and text items Items contain markdown and HTML text (tags) There is the configured report in the activity

Steps to reproduce

  1. Open a site and log in https://admin-staging.mindlogger.org/
  2. Proceed to the activity
  3. Open the Reports tab
  4. Expand Score component block
  5. Pay attention to the items prompts (text creator value)

Actual result Questions are not cleaned up with markdown, tags on the Configurable report page

Expected result: Since item text is markdown, it would be good to first clean it up. So remove all newline, </>, alt-text, table markup |———|, etc

image.png

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

natalia-muzyka commented 2 years ago

Verified as fixed:

image.png

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

natalia-muzyka commented 2 years ago

Still reproducible on staging and prod: image.png

Environment: https://admin-staging.mindlogger.org/ https://admin.mindlogger.org/ staging account: user-stg@ml.com config reports / test a Applet password Qwe123!!!

TatianaBessonova commented 2 years ago

Formatting is mostly removed but there are several markups which are still displayed on the Configurable report page: strikethrough, highlight, superscript, subscript. Environment: https://admin-staging.mindlogger.org/ Applet builder version v0.18.9-alpha Chrome 106 image.png

TatianaBessonova commented 2 years ago

The issue is reproducible for the following markdown types: strikethrough (voluptatem quia voluptas sit) highlight (==aspernatur aut odit aut fugit,==) superscript (sed^quia^) subscript (conseq~uuntur~) URL ( url. ) code (<i>hello world</i>) majority of HTML tags -

,

, ,
, , , , , ...

TatianaBessonova commented 2 years ago

Verified as fixed. All the markdown formatting are removed. Environment: https://admin-staging.mindlogger.org/ Applet builder v0.18.9-beta.