Skip to content

Conversation

@Mauritz8
Copy link
Contributor

close #761
This alters the "show solution button" to only show the next move in the solution, which is in line with both the website and the old app.

Copy link
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

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

I think we want this but we could improve it a little more.

We could for instance have the forward button glow or blink for a short period (3s) to visually indicate that one can go forward.

There is already an example of blinking button in game screen when a draw offer is received.

} else {
timer.cancel();
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a slight delay before jumping to next move is still desirable.

@Mauritz8
Copy link
Contributor Author

Mauritz8 commented Jul 3, 2024

There is already an example of blinking button in game screen when a draw offer is received.

For me the draw offer button is just colored differently, it doesn't blink or anything like that.
Is there another example of a blinking button?
image

@veloce
Copy link
Contributor

veloce commented Jul 3, 2024

It doesn't blink? My bad then :)

Any visual indication would be good actually, blinking is not mandatory. Perhaps a simple background color inversion for a duration of 3s would be the best?

@veloce
Copy link
Contributor

veloce commented Jul 5, 2024

If you have the time to post a screen recording showing the feature and button visual indicator in action that would be great. Thanks!

@Mauritz8
Copy link
Contributor Author

Mauritz8 commented Jul 5, 2024

No problem. I tried both blinking and color inversion, and I think blinking works a lot better. And I set the duration to 5 seconds instead of 3 because it felt a bit too short.
Screencast from 2024-07-05 12:20:21.webm

icon,
color: highlighted ? primary : null,
),
if (blink) ...[
Copy link
Contributor

Choose a reason for hiding this comment

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

As there is a single child, I don't think the ...[ is necessary.

? primary
: Theme.of(context).iconTheme.color ?? Colors.black,
),
] else ...[
Copy link
Contributor

Choose a reason for hiding this comment

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

Same: unecessary ...[


expect(find.byKey(const Key('h4-blackRook')), findsOneWidget);
expect(find.byKey(const Key('h8-whiteQueen')), findsNothing);
expect(find.byKey(const Key('h8-whiteQueen')), findsOneWidget);
Copy link
Contributor

Choose a reason for hiding this comment

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

We could add another check to show the "jump to next move" button is not disabled.

@Mauritz8
Copy link
Contributor Author

I addressed your comments. I'm a bit uncertain about the test, it might not be done in the most idiomatic way.

@veloce veloce merged commit 899f6a0 into lichess-org:main Jul 12, 2024
@veloce
Copy link
Contributor

veloce commented Jul 12, 2024

Thanks!

@Mauritz8 Mauritz8 deleted the mauritz/761 branch July 12, 2024 09:21
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.

Puzzles: show next correct move

3 participants