maproulette / maproulette/maproulette-frontend

Display virtual challenge progress when doing a task

Open
#2,328 3 comments 0 reactions 1 assignee View on GitHub

@CollinBeczak is already working on this.

Since May 3, 2024.

enhancement
Dominant language
JavaScript
Stars
167
Forks
39
Avg merge
16h 34m
Merged PRs (30d)
11

Description

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!!!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.