maproulette / maproulette3

MapRoulette, the micro-tasking tool for OpenStreetMap
https://maproulette.org
MIT License
128 stars 35 forks source link

refresh challenge on rebuild #2422

Closed CollinBeczak closed 2 months ago

CollinBeczak commented 2 months ago

Issue: When a user rebuilds a challenge, the application does not display a loading screen. As a result, users see the previous state of the challenge until they manually refresh the page to view the rebuilt challenge.

Solution: This pull request refreshes the challenge on rebuild so that the loading screen appears while the challenge is being rebuilt. Additionally, it ensures that the challenge is automatically refreshed once the rebuild process is complete, providing users with an immediate view of the updated challenge.

Extra: This pull request adds some jest unit tests and sets the default for dataOriginDate as the current challenges dataOriginDate

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 23.57%. Comparing base (95dca9d) to head (0a15cfe). Report is 9 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2422 +/- ## ========================================== + Coverage 23.38% 23.57% +0.19% ========================================== Files 649 649 Lines 22514 22517 +3 Branches 6902 6900 -2 ========================================== + Hits 5264 5308 +44 + Misses 14425 14393 -32 + Partials 2825 2816 -9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.