-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Bug fix: Remove alert when successfully completed replayed puzzles #12663
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
Conversation
| } | ||
| redraw(); | ||
| if (!next) { | ||
| alert('No more puzzles available! Try another theme.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This not only remove the alert when replaying from the puzzle dashboard, but also when playing a specific theme such as https://lichess.org/training/xRayAttack and no more puzzles are found.
The proper fix would be to detected if the user is replaying a puzzle and do not display the alert only in this case.
If (!data.replay) {
alert(...)
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback @kraktus I'll take care of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the alert back within an if block as suggested @kraktus
* master: improve study controller typing scala3 tweaks charge both limiters during login with pwned Update xml2js to v0.5 Allow newer pnpm versions Reveal appeal text box even with reduced animations add Rusyn language (Русинська бисїда) New Crowdin updates (lichess-org#12636) Update caffeine to 3.1.6 update chessops to 0.12.7 (insufficient horde material) Revert "remove unused xml2js package" Update pnpm-lock.yaml remove unused xml2js package
|
What I would prefer to happen -- and I think this is the "old" behavior -- is for no redirect at all after the last puzzle in a group is replayed. I would prefer to be able to follow the "From game" link to the source game after I have successfully replayed the puzzle. I think a redirect to the puzzle dashboard would be appropriate, but not until I have clicked on the green "thumbs up" or the red "thumbs down" icon. |
Request
Exact URL where the bug happened
https://lichess.org/training/replay/30/mix
Steps to reproduce the bug
Go to puzzle dashboard
Replay failed puzzles
Succeding all puzzles to replay.
What did you expect to happen?
Redirecting to the puzzle dashboard. (without prompting any popup)
What happened instead?
Showed an alert popup saying : "No more puzzles available! Try another theme."
After clicking ok, redirecting to puzzle themes.
Operating system and browser version
Windows 10
Chrome 109
Fix
Modified the path to redirect to the puzzle dashboard instead and removed the alert from the controller
fix #12332