Repository navigation
Dojo PuzzleBase - #2751
Open
hellokostya wants to merge 79 commits into
Open
Dojo PuzzleBase#2751hellokostya wants to merge 79 commits into
hellokostya wants to merge 79 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… and stats Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tings Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ings Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…pular list Members can vote on a puzzle after playing it, and change or take back the vote. Popularity is computed as on Lichess, 100 x (up - down) / (up + down). Totals live in their own item, updated in a transaction with the member's vote, so editing a puzzle can never lose a vote. Puzzle Contributors see the totals in the puzzle list and on the dashboard. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Three big buttons start the train screen, with tactics selected. The focus menu moves above the rating slider and offers the phases of the game and the themes of the chosen type. A training request can now ask for several buckets at once, which a puzzle must all have. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…focus menu to Themes Tactics is green with a bolt, Strategy yellowish with a brain, Mixed orange with a shuffle icon. The focus menu is now Themes, and its first option All Themes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…creen Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…trategy The previous commit left CompareArrows unimported. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s for A new endpoint gives the tag sets of the puzzles (counted together, and nothing else about a puzzle), and the train screen leaves out the phases and themes that would find nothing for the chosen type. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… centered titles Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…hoice Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ion length Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Tactics or strategy, and any of opening, middlegame and endgame, which are all on to start with. The cards use the training plan's icons. A training request can ask for puzzles of any of several types and phases, and the Themes menu offers themes that puzzles of the chosen types and phases have. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… phases Tactics, Strategy or Mixed (both) pick the type; below a divider, any of opening, middlegame and endgame can be on. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ox or headings Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…olving Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e board On the solution page Stockfish and the notation come first, then the result, the puzzle details and the tags. While solving, a straight White/Black to play sticker sits just right of the board, halfway down, through a new besideBoard slot on PgnBoard. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…use details text The averages are of members rated within 200 points of the member (totals kept per 50-point band of rating), shown in one compact strip labelled Avg accuracy, Avg speed and Avg score, with no heading or time caption. The solution page's details put the number and the short facts on one line and give the game the whole next line. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… puzzle's rating Replaces the streak and level tiles: every puzzle finished this session gets a green tick if it was solved cleanly or a red cross if not, with its rating under it, and the streak is the big number above. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A saved choice that is no longer offered plays the default. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Strike boxes beside the clock fill as puzzles are missed; the card shows White/Black to move, the number correct, the puzzle's rating and the streak, then a row of marks for every puzzle so far. Sounds and Settings move to the foot of the card. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…G with a group icon and a rating-range tooltip The left card has its settings gear, Accuracy and Mistakes tiles and Sounds switch again; no strike boxes, no side-to-move title and no puzzle rating. It keeps the correct count, the streak and the row of marks. The cohort average is labelled Avg with a group icon, and hovering says which ratings it is of, the member's rating plus and minus 200. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The number, the players and the result share a line, the place and year sit under them, then rating and annotator. The tags follow with no extra line, and the vote and Suggest tags button share a row, leaving the notation more room. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…vote sits under Suggest tags Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ng band Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…le's accuracy A move found on the second try now earns half, as in the puzzle's score, instead of counting as a miss. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Bigger players and result, larger tags, more space between the groups, and bigger Suggest tags and vote. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rating Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… more compact score block Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ion so far; wording On the result card the correct count leaves the streak block (the flame and marks stay) and appears as a Puzzles tile beside Accuracy and Mistakes. A repeat says it does not affect the rating. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A repeat does not move the rating, but its result now carries the member's rating, and the rating plate is shown with a note that it is not affected. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, room above streak marks Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nges Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the Dojo PuzzleBase: a curated puzzle collection that approved Puzzle Contributors add to and tag, with a trainer and stats built on top.
For contributors and admins (
/puzzles/base)ALT,ALT2orSKIP. Leaving with unapplied changes asks first.Training
Shared code
common/src/puzzlebase: schemas, PGN parsing, tags, scoring and export, used by backend and frontend.backend/puzzlebaseService: new serverless service with two DynamoDB tables (<stage>-puzzlebase,<stage>-puzzlebase-runs, bothRetain).PgnBoardadditions:largeBoard, extra slots (including a move-menu slot), and acompactoption onViewerSettings.Rollout
PUZZLEBASE_TRAINING_OPEN=trueis set at deploy time, train and attempt endpoints return 403 for everyone but contributors and admins.Testing
common,backendandfrontend.devfirst. I added some missing IAM statements inserverless.yml, so check permissions on first deploy.Not in this PR
next-intlis a follow-up.🤖 Generated with Claude Code