As a user
I want to be able to see how good the stats of a player are compared to other saved players in the same position
So that I can better evaluate that player
Description
Acceptance Criteria
[x] The player details view has a Compare Player link
[x] Hitting Compare Player opens a new page
[x] The new page displays a short description of the ranking
[x] Goalkeepers are ranked by conceded goals (low to high)
[x] Defenders are ranked by duel rate (high to low)
[x] Midfielders and Attackers are ranked by scorer points (high to low)
[x] The new page has a Back link that redirects to the player details
Tasks
[x] Create a feature branch feature/player-ranking
[x] Create a new page pages/players/[id]/ranking.js with a Back link to pages/players/[id]/index.js
[x] Add a Compare Player link from pages/players/[id]/index.js to pages/players/[id]/ranking.js
[x] Implement the logic to render the headline and the player ranking based on the position of the original player
Value Proposition
As a user I want to be able to see how good the stats of a player are compared to other saved players in the same position So that I can better evaluate that player
Description
Acceptance Criteria
Compare Player
linkCompare Player
opens a new pageBack
link that redirects to the player details Tasks
feature/player-ranking
pages/players/[id]/ranking.js
with aBack
link topages/players/[id]/index.js
Compare Player
link frompages/players/[id]/index.js
topages/players/[id]/ranking.js