facebook / Rapid

The OpenStreetMap editor driven by open data, AI, and supercharged features
https://rapideditor.org
ISC License
483 stars 91 forks source link

[MapRoulette Integration] Support MapRoulette templating in challenge instructions #1423

Open b1tw153 opened 1 month ago

b1tw153 commented 1 month ago

Description

MapRoulette supports basic form fields and short codes in challenge instructions. E.g.:

[checkbox "Your checkbox label" name="myCheckbox"]

[select "Your select label" name="myDropdown" values="foo,bar,baz"]

[copyable "some useful text"]

This markup is documented here: https://learn.maproulette.org/en-us/documentation/challenge-instructions-templating/

Currently in Rapid, this markup is not parsed and is displayed as raw text in the instructions.

This issue is related to #1419 - Curly braces in instructions aren't replaced

Screenshots

Screenshot 2024-05-13 at 6 33 57 AM

Version

2.3.1

What browser are you seeing the problem on? What version are you running?

Firefox 125.0.3

The OS you're using

MacOS 14.4.1

Steps to reproduce

  1. Open Rapid and enable MapRoulette tasks in the Map Data using Challenge ID 43887
  2. Zoom/Pan to a MapRoulette task in Mono County and select the task
  3. Note that the MapRoulette markup in the instructions is rendered as plain text

The browser URL at the time you encountered the bug

https://rapideditor.org/rapid#map=15.85/38.0448/-119.2625&background=Bing&datasets=fbRoads,msBuildings&disable_features=boundaries

The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)

No response

b1tw153 commented 1 month ago

Yes, the instructions refer specifically to JOSM. I'll fix that when #1340 and #1419 are fixed. :)