Skip to content
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

View recent games by time control/variant #830

Merged
merged 8 commits into from
Jul 11, 2024

Conversation

Mauritz8
Copy link
Contributor

@Mauritz8 Mauritz8 commented Jul 4, 2024

I think being able to see past games in a certain time control/variant would be a really useful feature.

2024_07_04_0ra_Kleki
image

@Mauritz8 Mauritz8 marked this pull request as draft July 4, 2024 13:50
Mauritz8 added 2 commits July 4, 2024 15:58
it looks better visually, and uses space more efficiently
@Mauritz8
Copy link
Contributor Author

Mauritz8 commented Jul 4, 2024

What do you think of the GamePerf enum I added, is it needed? It forces only valid values of the Perf enum to be passed as a param to the api call (puzzles and from position not valid). But in the performance stats screen, the current logic already takes care of that.

@Mauritz8 Mauritz8 force-pushed the view-recent-games-by-type branch from 6c9656a to c8f8a70 Compare July 4, 2024 14:36
@Mauritz8 Mauritz8 marked this pull request as ready for review July 4, 2024 14:39
@Mauritz8
Copy link
Contributor Author

Mauritz8 commented Jul 5, 2024

It does not support the current logged in user if offline, since you can't access the profile nor the performance stats screen if you're offline. Though, if those screens will be available offline in the future it might be worth supporting it anyways, what do you think?

@veloce
Copy link
Contributor

veloce commented Jul 5, 2024

What do you think of the GamePerf enum I added, is it needed? It forces only valid values of the Perf enum to be passed as a param to the api call (puzzles and from position not valid). But in the performance stats screen, the current logic already takes care of that.

I don't think we should add another GamePerf enum. You can just use Perf and add some assert where needed to make sure it is not used with unwanted perf types.

@veloce
Copy link
Contributor

veloce commented Jul 5, 2024

This partially cover #454. I agree this feature itself is interesting, but the latter is the most interesting one.

@Mauritz8
Copy link
Contributor Author

Mauritz8 commented Jul 6, 2024

Now that I see it, I agree that #454 would be really nice to have. Can I work on it, or should we wait until all the filters are available in the server api? Perhaps, I could just add a filter for perftype and integrate it with the current changes in this pr.

@veloce
Copy link
Contributor

veloce commented Jul 8, 2024

Yes you can keep the feature in this PR, it's a nice one. If you are willing to implement partially #454 at the same time with the existing server filters that'd be great!

I'll take care of the missing server side API, and we can track the progress in #454

@veloce veloce merged commit 852c562 into lichess-org:main Jul 11, 2024
1 check passed
@veloce
Copy link
Contributor

veloce commented Jul 11, 2024

I preferred to merge it right away. Feel free to open another PR for #454

@Mauritz8 Mauritz8 deleted the view-recent-games-by-type branch July 11, 2024 20:11
@ZTL-UwU ZTL-UwU mentioned this pull request Jul 26, 2024
8 tasks
@ijm8710
Copy link

ijm8710 commented Jul 26, 2024

@Mauritz8 thank you for this. Quick check, do these games from
Perf screen also show accuracy when engine analysis is run and the force hold options that you have like on the game list on Home Screen?

@Mauritz8
Copy link
Contributor Author

Yes, this just links to the game history screen, so the behavior is the same as before.

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