Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display virtual challenge progress when doing a task #2328

Open
mblaine opened this issue May 3, 2024 · 2 comments
Open

Display virtual challenge progress when doing a task #2328

mblaine opened this issue May 3, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mblaine
Copy link

mblaine commented May 3, 2024

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

@CollinBeczak
Copy link
Collaborator

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?
Screenshot 2024-05-03 at 1 20 12 PM

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

@mblaine
Copy link
Author

mblaine commented May 3, 2024

Yeah that would be awesome. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

2 participants