-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Leaderboard #855
Leaderboard #855
Conversation
Co-authored-by: Allen Lee <alee@users.noreply.github.com> Co-authored-by: saachibm <saachibm@users.noreply.github.com>
created leaderboard.ts in server/src/routes section for issue virtualcommons#851 and added b-table in Leaderboard.vue for virtualcommons#852
Issue virtualcommons#852 created table and added table components + ordered rank in ascending order
Issue virtualcommons#851 tried to do AJAX handling requests and see bot/non-bot data
Issue virtualcommons#852 Added bot/non-bot buttons (tried to link button to a function that retrieves data) and reconfigured containers for vertical view
Co-authored-by: saachibm <saachibm@users.noreply.github.com> ref virtualcommons#851 feat: improve leaderboard view styling/functionality - added fetch on create - reworked styling to be more consistent - added filter switch ref virtualcommons#852 Co-authored-by: saachibm <saachibm@users.noreply.github.com> feat: add leaderboard service highscore queries ref virtualcommons#851
Issue virtualcommons#852 Started connecting button to client data (and went over code in Leaderboard.ts)
issue virtualcommons#852 and virtualcommons#851 setup TODO and FIXME for requirements LiveShare VSC with Scott, Saachi, and I
Issue virtualcommons#852 - Added the rest of leaderboard item fields - Added sortable to leaderboard fields (rank & username) - Squashed 2 commits and reconfigured Tiffany's local repository Co-Authored-By: Tiffany Kawamura <86638759+Tkawamura02@users.noreply.github.com>
Looking this over again, it seems like commit history got a bit mangled (probably by github desktop) with a merge creating duplicate commits, easily fixable but ought to be done before merging this Also: get in the habit of using semantic commit messages, helps out with consistency so our future selves can figure out what happened |
- added fetch on create - reworked styling to be more consistent - added filter switch ref virtualcommons#852 Co-authored-by: saachibm <saachibm@users.noreply.github.com> Co-authored-by: Tkawamura02 <Tkawamura02@users.noreply.github.com>
uses the old service and component that was used for the player dashboard TODO: - rework/restyle the PlayerStatItem component and the parent page Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com> Co-authored-by: saachibm <saachibm@users.noreply.github.com>
d7008d2
to
ecaeeb1
Compare
UPDATED TASKS FOR THIS ISSUE
|
Tiffany and I worked on task 2 and are continuing to figure out how to fix null points/corner cases (4/5/23) |
- fixed issue with returning records with null points - only sum points from games with status=victory - added limit param to request Co-authored-by: saachibm <saachibm@users.noreply.github.com> Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
- extract leaderboard table into component, used by page/anywhere else - rework some of the displayed data for (hopefully) better clarity - restyling Co-authored-by: saachibm <saachibm@users.noreply.github.com> Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
Just need to clean up the player stats/past games page for this to be ready to merge |
Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com> Sabrina Nelson <sabrinanel3@users.noreply.github.com>
brought more in line with current styling and some refactoring on client/server Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com> Co-authored-by: saachibm <saachibm@users.noreply.github.com>
- add visually cliched table striping for contrast - use _rowVariant to highlight highest point players
TODO: should consider renaming leaderboard route to stats with /leaderboard /player endpoints instead
add clarification tooltip to victory % TODO: we should also add actual victories, the number of games where all players survived and the player had the most victory points.
- mount .prettierrc into client and server containers so yarn style:fix should now work - merge staging.base.yml into staging.yml, the docker ports added in staging.yml are also used in prod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
server/src/routes/leaderboard.ts
Outdated
|
||
export const leaderboardRouter = Router(); | ||
|
||
leaderboardRouter.get("/", async (req, res, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feels like leaderboard is a part of /stats, not the other way around. how about routes like:
/stats/leaderboard
/stats/player
No need to address in this PR, but we might want to create an issue for this to be resolved later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ended up resolving this alongside the other renaming, stats
is now the base url/service name/category for directory naming purposes
Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
- leaderboard (as a categorization) is now stats - player stats is now game history Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
Should be good to go @alee, anything not addressed in the last couple of commits are in new issues |
extract seems unnecessarily long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks all!
@all-contributors |
I've put up a pull request to add @sgfost! 🎉 I've put up a pull request to add @Tkawamura02! 🎉 I've put up a pull request to add @saachibm! 🎉 |
Adds global high scores and personal game history pages
resolves #852
resolves #851