Skip to content

Add John Wick Award badge#46

Open
kostrykin wants to merge 3 commits intomasterfrom
kostrykin/fix-26
Open

Add John Wick Award badge#46
kostrykin wants to merge 3 commits intomasterfrom
kostrykin/fix-26

Conversation

@kostrykin
Copy link
Contributor

@kostrykin kostrykin commented Jan 3, 2025

Fix #26


For more details, open the Copilot Workspace session.

Copy link
Contributor Author

@kostrykin kostrykin left a comment

Choose a reason for hiding this comment

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

Remaining tasks

</div>

<div class="legend-item">
<div style="background-image: url('{% static 'badges' %}/john-wick-award.png');" class="badge"></div>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add the missing image file john-wick-award.png

* **Models**: Add "John Wick Award" badge type to `MatchBadgeType` and implement logic to award the badge in `MatchBadge`.
* **Views**: Update badge display logic in `get_badges` to include "John Wick Award".
* **Templates**: Update badge display templates in `player.html`, `squads.html`, `profile-card.html`, `sessions.html`, and `sessions-list.html` to include "John Wick Award".
* **Tests**: Add tests for "John Wick Award" badge in `MatchBadge__award`.
* **Migrations**: Create migration file to add "John Wick Award" badge type to `MatchBadgeType`.
@github-actions
Copy link

github-actions bot commented Jan 3, 2025

Test coverage of c237e35: 72%

@github-actions
Copy link

github-actions bot commented Jan 3, 2025

Test coverage of 4eb55e1: 72%

@kostrykin kostrykin requested a review from Copilot January 3, 2025 19:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • django/stats/templates/stats/squads.html: Language not supported

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.

Add more badges

1 participant