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

Custom leaderboard or multi-user filtered results #27

Open
davidgustav opened this issue Mar 11, 2020 · 3 comments
Open

Custom leaderboard or multi-user filtered results #27

davidgustav opened this issue Mar 11, 2020 · 3 comments

Comments

@davidgustav
Copy link

My friends and I would love a way to see a leaderboard with only us on it in addition to the main board. That way we don't have to search for each one of us each time and can easily see how we did compared to each other.

Ideally we'd be able to specify the usernames to pull into that view and could modify the list as more friends start playing.

Some thoughts I had in case someone else can think about it before I can attempt a PR.

  • when searching on board, add a way to select one of the names that is returned and add it to a list
  • store list of users in a similar way to how usernamesUsed works
  • add a class similar to my-name to every name in the list (something like my-friends)
  • add a toggle to only display entries with that new class on the leaderboard
@hryanjones
Copy link
Owner

One workaround, assuming your friends aren't super tied to their usernames and associated scores would be to have a common acronym that's in everybody's name. There's a group from Ravelry LSG that does this:

https://hryanjones.com/guess-my-word/board.html?search=LSG

@davidgustav
Copy link
Author

Sometimes it's the easiest solutions... Yeah that makes total sense. I'm not sure we're humble enough to start over. Will think about it some more. I've got a workaround w/ a hardcoded user list, but that's just sitting in a local file that I can hit and screenshot for them. Nothing worthy of sharing at this point.

@hryanjones
Copy link
Owner

Also, it wouldn't be too hard to add another URL param that's like "userFilter=someone,another person" that would filter down the list (assuming a username doesn't have a "," in it). It'd be pretty easy to implement even without any extra UI portions and I'd be likely to approve that PR pretty quick :)

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

No branches or pull requests

2 participants