WIP: Replay Failed Puzzles from Dashboard #1446
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to replay your failed puzzles from the dashboard.
I don't see an API endpoint to get all the failed puzzles from a certain time frame so the only thing I could think of was to go through the history from newest to oldest (since that's how it's paged) and to keep letting the user solve puzzles until they do all in that time frame. I think having an endpoint would make this easier to do in the same way as the web version.
Another issue I haven't figured out how to fix is the dashboard doesn't update after you solve some of your failed problems. Part of it is because we aren't sending a solve request to the API after every solved puzzle and part of it seems to be because we aren't refreshing the page after we return to the dashboard.
Overall, I would love some guidance on this since this is one of the best puzzle features on web.
add.replay.button.with.logic.mp4