Skip to content

Replay Failed Puzzles from Dashboard#1446

Merged
veloce merged 13 commits into
lichess-org:mainfrom
CloudyDino:puzzle-replay
Apr 9, 2026
Merged

Replay Failed Puzzles from Dashboard#1446
veloce merged 13 commits into
lichess-org:mainfrom
CloudyDino:puzzle-replay

Conversation

@CloudyDino

@CloudyDino CloudyDino commented Feb 15, 2025

Copy link
Copy Markdown
Contributor

Close: #2623

This PR adds the ability to replay your failed puzzles from the dashboard.

Using the new Puzzle Replay API: https://lichess.org/api#tag/Puzzles/operation/apiPuzzleReplay

Another issue I haven't figured out how to fix is the dashboard doesn't update after you solve the failed problems.

I'm really hoping we can get this feature on the new mobile app since I love using it on web!

Old recording:

Android.puzzle.replay.webm

@CloudyDino CloudyDino force-pushed the puzzle-replay branch 5 times, most recently from 8ab1a95 to 942479a Compare February 17, 2025 21:45
@veloce

veloce commented Feb 18, 2025

Copy link
Copy Markdown
Contributor

Thanks for tackling this. I'll review first the hint and rating PRs.

In the meantime I think you can get in touch with the server dev team on discord, and ask about an endpoint to get failed puzzles.

@CloudyDino CloudyDino force-pushed the puzzle-replay branch 2 times, most recently from 82c10bd to 6b73a43 Compare February 20, 2025 20:09
@CloudyDino CloudyDino changed the title Replay Failed Puzzles from Dashboard WIP: Replay Failed Puzzles from Dashboard Feb 20, 2025
@HaonRekcef

Copy link
Copy Markdown
Collaborator

Hey @CloudyDino, I just noticed that the Puzzle Replay API is now available: https://lichess.org/api#tag/Puzzles/operation/apiPuzzleReplay

@CloudyDino CloudyDino force-pushed the puzzle-replay branch 2 times, most recently from dbbb37d to c4faeee Compare April 1, 2026 22:07
@CloudyDino CloudyDino changed the title WIP: Replay Failed Puzzles from Dashboard Replay Failed Puzzles from Dashboard Apr 1, 2026
@CloudyDino

Copy link
Copy Markdown
Contributor Author

@veloce Could you take a look?

@CloudyDino CloudyDino marked this pull request as ready for review April 1, 2026 22:11

@veloce veloce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CloudyDino thanks for this.

Code looks legitimate. Before accepting this PR, it should have tests in puzzle_screen_test.dart.

Puzzles are important in the app and well tested. Ideally this new feature should be fully covered.

@veloce

veloce commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Another piece of feedback: the replay failed button is at the bottom of the screen, not very visible.

We could maybe have it in the bottom of the dashboard card (where the graphics is)? Then it should not be styled as a FilledButton.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@CloudyDino

Copy link
Copy Markdown
Contributor Author

Thanks! Please see the new tests and the new replay button:

@veloce veloce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit 7bd26d4 into lichess-org:main Apr 9, 2026
1 check passed
@ijm8710

ijm8710 commented Apr 15, 2026

Copy link
Copy Markdown

Hey @CloudyDino was about to add that the replay doesn't update after you solve a previously failed problem but then I saw you had that already as an outstanding issue

Just wanted to confirm that was still existing even once the pr was merged and did you or Veloce have any potential ideas how to address it?

Worst case scenario could we not just add pull to refresh on the page

But I think Veloce already has some automatic refresh logic without the need to pull to refresh on the home page and was curious if that could be borrowed for here

@CloudyDino

Copy link
Copy Markdown
Contributor Author

@ijm8710 Yeah the issue still exists. I'll try to take a look if I can work on the pull to refresh or the automated refresh at some point, but I'm getting a bit busy lately. Let me know if I should create another ticket/issue or if you do so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Puzzle Replay

4 participants