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
Feature/#2319 veto system: simple maplist popup #3151
Feature/#2319 veto system: simple maplist popup #3151
Conversation
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.
This is a first pass review.
More generally there are lots of places where you set just a basic object in the controllers but this could lead to null pointer exceptions. It would be better to use a property to represent these fields like queue, pool, relevance. Then you can also use the binding and mapping on the properties so that the reactive changes are handled for you.
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapTileController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapTileController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapTileController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapTileController.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3151 +/- ##
=============================================
- Coverage 58.83% 58.19% -0.64%
+ Complexity 3984 3951 -33
=============================================
Files 576 575 -1
Lines 19296 19279 -17
Branches 1022 1025 +3
=============================================
- Hits 11353 11220 -133
- Misses 7447 7569 +122
+ Partials 496 490 -6
... and 18 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Hi @Sheikah45 , some adjustments were made, i think it can be reviewed once more |
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapTileController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingController.java
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
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.
A few ways to use new method signatures to clean things up
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/faforever/client/teammatchmaking/TeamMatchmakingMapListController.java
Show resolved
Hide resolved
Also I would make an observable value queue.map(Queue::getLeaderboard) so that null exceptions with queues can be avoided |
…ng for (no-bottom-border) and (no-upper-border) values
fb99987
to
331dfe0
Compare
"Maplist" button on the Play tab now summons popup with maplist instead of navigating to the vault.
This is "Simple" version of the popup, shows maps without duplicates, with grayscaling of map tiles