Add saved drill presets to opening selection#307
Merged
Conversation
Introduce a saved-drill preset system in the opening/endgame selection modal, persisted to localStorage and keyed by a per-selection signature (opening, variation, rating, color, move count, endgame traits). - New src/lib/savedDrills.ts: read/write/upsert presets, signature and default-name helpers, with normalization and de-duplication. - Saved Drills category in the browse panel, filtered by the active category and search term, with select/remove. - Save acts on the queue when it has drills, otherwise on the drill currently configured in the preview, so tweaking a loaded preset's settings (e.g. rating) saves as a distinct drill rather than a no-op. - Selection titles show the variation as the primary label and the opening family as the secondary label, in both the saved-drills list and the queue. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 a saved-drill preset system to the opening/endgame selection modal, persisted to
localStorage.src/lib/savedDrills.ts— read/write/upsert presets keyed by a per-selection signature (opening, variation, rating, color, move count, endgame traits), plus signature and default-name helpers with normalization and de-duplication.Testing
npx tsc --noEmit— cleannpm run lint— clean (one pre-existing unrelated warning in_app.tsx)🤖 Generated with Claude Code