Skip to content

Edit clock tool to allow time and increment change to one player while paused - #3460

Open
Giuseppe499 wants to merge 3 commits into
lichess-org:mainfrom
Giuseppe499:addTime_reuse_UI
Open

Edit clock tool to allow time and increment change to one player while paused#3460
Giuseppe499 wants to merge 3 commits into
lichess-org:mainfrom
Giuseppe499:addTime_reuse_UI

Conversation

@Giuseppe499

Copy link
Copy Markdown

Allow users to modify the time and increment settings while the clock is paused.
Previously, the per-player settings UI became unavailable when the clock started.

New behaviour:
output2

Old behaviour:
output3

Solves issue #1788 as time can now be edited during a game

@veloce

veloce commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Thanks for this @Giuseppe499

My feedback based on your screen recording:

I would only allow the per clock time change when a game is started. So the global cog should stay disabled, but the per clock tune icons would appear when the clock is paused mid-game.

Important note: when time is added using that per-clock button, it should not modify the saved settings of the clock, just add time to the current game.

@Giuseppe499

Copy link
Copy Markdown
Author

Hi @veloce. Thanks for the feedback!

I need some clarifications:

I would only allow the per clock time change when a game is started. So the global cog should stay disabled, but the per clock tune icons would appear when the clock is paused mid-game.

Do you mean that the per-clock tune icons shouldn't be visible before the clock is started, or just that the global cog should be disabled when the clock is paused after it is started?
I think that the first one would be a regression. In the current app, the per-clock tune icons are enabled only when the clock isn't started, and they are used to have different settings for each player and to store the settings for subsequent sessions.

Important note: when time is added using that per-clock button, it should not modify the saved settings of the clock, just add time to the current game.

The current code should already do this. Per-clock preferences are stored only if the clock is not started yet.
If the per-clock button is used with the clock started and paused, it just updates the time and increment, but those settings are not saved for future sessions.
For reference, see this snippet.

@veloce

veloce commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Do you mean that the per-clock tune icons shouldn't be visible before the clock is started, or just that the global cog should be disabled when the clock is paused after it is started?

No, the existing behaviour (before your PR) should remain unchanged. What I meant is that the global cog should be disabled when playing (the actual behaviour too), but the per-clock tune (which are currently not shown when pausing the clock) now are show when pausing the clock (during game), to allow changing time in-game.

Hope it is more clear now :)

@Giuseppe499

Copy link
Copy Markdown
Author

What I meant is that the global cog should be disabled when playing (the actual behaviour too)

As you can see from the changed files, this PR does not change the global cog behaviour.

@ijm8710

ijm8710 commented Jul 24, 2026

Copy link
Copy Markdown

What I meant is that the global cog should be disabled when playing (the actual behaviour too)

As you can see from the changed files, this PR does not change the global cog behaviour.

I could be wrong but I think what Veloce is suggesting is to actually grey out the button so that it can't be actioned in this scenario

@Giuseppe499

Giuseppe499 commented Jul 24, 2026

Copy link
Copy Markdown
Author

I could be wrong but I think what Veloce is suggesting is to actually grey out the button so that it can't be actioned in this scenario

I thought that too, but he said that the existing behaviour (before my PR) should remain unchanged.
If he wants that, I can easily do another commit with this feature.
@veloce, in that case, let me know

@veloce

veloce commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

My bad: indeed the cog is available when the clock is paused, and changing the setting just restart the clock. Let's keep that behaviour indeed @Giuseppe499

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.

3 participants