Open mblaine opened 4 months ago
We can probably adjust this widget to display the virtual challenges task data instead of the full challenges data when in a virtual challenge. Does that sound like a good solution to you?
And to answer your question if you are using virtual challenge correctly, i believe you are, you can read more here: https://learn.maproulette.org/en-us/documentation/editing-virtual-challenges/#content
Yeah that would be awesome. Thank you!
Is your feature request related to a problem? Please describe. No problem
Describe the solution you'd like When viewing a task as part of a virtual challenge, it would be cool to know how many tasks are remaining in the virtual challenge.
Describe alternatives you've considered I made myself a bookmarklet to pop up the number of tasks remaining that I can use
javascript:const vId = /\/virtual\/([0-9]+)\//.exec(window.location.pathname)[1];function reqListener(){alert(this.responseText.match(/status":0/g).length);}const req = new XMLHttpRequest();req.addEventListener("load", reqListener);req.open("GET", "https://maproulette.org/api/v2/virtualchallenge/" + vId.toString() + "/tasks?limit=1000&page=0");req.send();
Additional context I've been using virtual challenges to carve out smaller chunks of larger challenges with the goal of completing a few dozen tasks myself in one sitting. I do not know if this is an intended use case of virtual challenges or not. But knowing I only have so many tasks to go helps motivate me to complete the work I lassoed when I created the virtual challenge. Thank you!!!