这是indexloc提供的服务,不要输入任何密码
Skip to content

Add quick actions #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Add quick actions #1986

wants to merge 8 commits into from

Conversation

aba2222
Copy link

@aba2222 aba2222 commented Jul 24, 2025

Resolves #1791

Add a quick action to run "Healthy Mix" puzzle and another quick action to open quick pair screen.

@veloce
Copy link
Contributor

veloce commented Jul 24, 2025

Hey! thanks for taking care of this. You should precise this is only for android.

I'm not a fan of a new screen to show the quick game matrix. It does not add much value.

I would much prefer having 2 or 3 "play action" based on the user preferences.

I reckon it is more work, as you need to "record" the setup of a game each time a game is created. But it is not that hard after all.
Some suggestions:

This would add much more value imo. If you look at the Spotify app, this is exactly what they do: the last 3 albums you've listened to are in quick actions.

Another feedback: don't put icons, or use the official lichess icons for game kinds; eg: a blitz game should have the blitz (fire) icon, a rapid the rapid (rabbit) icon, etc.

@veloce
Copy link
Contributor

veloce commented Jul 24, 2025

UPDATE: don't follow my previous comment actually 😅

I realise the Spotify approach is better. We should show the last 3 created game types (if we have them).

So it is not a Map<GameSeek, int that we need to persist, but only the last 3 created GameSeek.

@aba2222
Copy link
Author

aba2222 commented Jul 25, 2025

It shows the last 3 created game types (if any) and we can click them to play the same type of game.
If the game was rated, there is an 🏅 icon appears next to its name.

Screenshot

@meenbeese
Copy link
Contributor

iOS has this feature as well. Will this implementation also work on there?

@aba2222
Copy link
Author

aba2222 commented Jul 25, 2025

iOS has this feature as well. Will this implementation also work on there?

It should work on iOS as well, but I currently don't have iOS device to test it.

@veloce
Copy link
Contributor

veloce commented Jul 28, 2025

If the game was rated, there is an 🏅 icon appears next to its name.

That won't do, because we don't use that icon in the app and people would not understand. Also we need a way to indicate this action will create a game.
Also we need to indicate which variant it is. For now we only support chess960, but more variants will come later.
Could be improved, and suggestions are welcome, but I see something like this:

Capture d’écran 2025-07-28 à 10 39 14

In place of the star, there should be the perf icon: bullet, blitz, rapid, classical or variant (960, crazyhouse, etc).

I think like that it is a bit more clear what does the action: the + icon indicates it creates a game, as well as the "Recently played".

@aba2222
Copy link
Author

aba2222 commented Jul 28, 2025

In place of the star, there should be the perf icon: bullet, blitz, rapid, classical or variant (960, crazyhouse, etc).

I think this can't be implemented. Both Android and iOS only support native layout in quick actions. Unless we replace + icon with perf icon.

@veloce
Copy link
Contributor

veloce commented Jul 28, 2025

Oh, right, and I suppose using the LichessIcon font won't work.

Then we can use the shortTitle of Perf.
But only if the variant is different from standard chess. In another bullet point after "rating / casual".

@aba2222
Copy link
Author

aba2222 commented Jul 29, 2025

It looks like this picture now. The subtitile "Recently played" may be hidden by some launchers.

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.

Platform Home Screen quick actions
3 participants