Add configurable time control sliders to PlaySetupModal#197
Closed
Copilot wants to merge 2 commits into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: kevinjosethomas <46242684+kevinjosethomas@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add more time control options
Add configurable time control sliders to PlaySetupModal
Aug 5, 2025
Collaborator
|
I don't want there to be a separate slider for preset/custom. I want there to be a "Time Control: " with the preset options in smaller buttons/text on the right. Below that there should be the sliders. Clicking on any preset option should change the sliders to be whatever values are in that configured preset. |
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.
This PR adds Lichess-style configurable time control sliders to the PlaySetupModal, allowing players to set custom time and increment values instead of being limited to preset options.
Changes Made
New Components:
Slider.tsx- A reusable slider component with proper styling and accessibilitytimeControlUtils.ts- Utility functions for converting between custom values and preset formatsEnhanced UI:
Key Features:
TimeControlstring formatThe implementation provides users with complete flexibility to create any time control combination while maintaining full compatibility with the existing codebase and game logic.
Fixes #194.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
dock2.csslab.canext-server (v15.4.3)(dns block)fonts.googleapis.comnode /home/REDACTED/work/maia-platform-frontend/maia-platform-frontend/node_modules/.bin/next build(dns block)next-server (v15.4.3)(dns block)us.posthog.comnext-server (v15.4.3)(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.