Skip to content

[FEAT] In-game Scoreboard/Leaderboard#579

Merged
BilelJegham merged 10 commits intoGeoGuess:masterfrom
Troplo:scoreboard
Aug 2, 2023
Merged

[FEAT] In-game Scoreboard/Leaderboard#579
BilelJegham merged 10 commits intoGeoGuess:masterfrom
Troplo:scoreboard

Conversation

@Troplo
Copy link
Copy Markdown
Collaborator

@Troplo Troplo commented Dec 5, 2022

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description

Closes #127, adds an in-game scoreboard on the top right hand corner of the screen which can be configured to either display both the user's score, and whether they have guessed, just guess status, or disable it completely on the game settings screen.

On mobile a little button is added next to the game duration which opens up a dialog to view the leaderboard.

How Has This Been Tested?

All tests pass, and is currently deployed on my instance along with my other changes from PR #572

Screenshots (if appropriate):

Scoreboard
Settings

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 5, 2022

👷 Deploy request for geoguess2 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c00a8aa

@Troplo Troplo changed the title In-game Scoreboard/Leaderboard [FEAT] In-game Scoreboard/Leaderboard Dec 5, 2022
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@BilelJegham BilelJegham self-requested a review December 13, 2022 21:28
@BilelJegham BilelJegham self-assigned this Dec 13, 2022
@ElectricS01
Copy link
Copy Markdown

Works very well, should merge this

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@BilelJegham
Copy link
Copy Markdown
Member

Hello,

Really sorry... totally forgot to check the pr. Code seems good for me. :)

I have to same UX suggestion:

  1. When I play in "Single player", I don't we need to see checkbox "Display scoreboard".

recording

  1. Maybe put scoreboard in the front when round result are print.

screenshot

@Troplo
Copy link
Copy Markdown
Collaborator Author

Troplo commented Aug 2, 2023

I've hidden the leaderboard options in singleplayer, and additionally moved the leaderboard when the full screen map appears at the end of the round, I think this looks better than just increasing the z-index since it would overlap the edges of the map.
image

@ElectricS01
Copy link
Copy Markdown

Looks pretty good

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.32% 🎉

Comparison is base (4c0d574) 51.28% compared to head (936a0d6) 51.60%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #579      +/-   ##
==========================================
+ Coverage   51.28%   51.60%   +0.32%     
==========================================
  Files          52       53       +1     
  Lines         741      746       +5     
  Branches      205      209       +4     
==========================================
+ Hits          380      385       +5     
  Misses        329      329              
  Partials       32       32              
Files Changed Coverage Δ
src/components/DialogMessage.vue 100.00% <ø> (ø)
src/components/HeaderGame.vue 100.00% <ø> (ø)
src/components/Maps.vue 100.00% <ø> (ø)
...rc/components/dialogroom/card/CardRoomSettings.vue 100.00% <ø> (ø)
src/pages/Home.vue 100.00% <ø> (ø)
src/pages/StreetView.vue 100.00% <ø> (ø)
src/components/game/Leaderboard.vue 100.00% <100.00%> (ø)
src/store/modules/settings.store.js 25.31% <100.00%> (+1.93%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Member

@BilelJegham BilelJegham left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@BilelJegham
Copy link
Copy Markdown
Member

@all-contributors please add @Troplo for code
@all-contributors please add @ElectricS01 for review

@BilelJegham BilelJegham merged commit 66d1bd9 into GeoGuess:master Aug 2, 2023
@allcontributors
Copy link
Copy Markdown
Contributor

@BilelJegham

@Troplo already contributed before to code

I've put up a pull request to add @ElectricS01! 🎉

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.

[FEAT] Live ingame score board

3 participants