fribyte-code / friByte.capture-the-flag

friBytes own Capture The Flag platform 🚩
MIT License
0 stars 0 forks source link

"First blood" notification #28

Closed mathiash98 closed 8 months ago

mathiash98 commented 8 months ago

We might already have it, but ensure we have it.

"First time a team solve a task: Send a signalR notification to frontend to render a 'First blood: Task xx was solved by team YYY!'"

In backend: CtfTaskService.cs#L179 SendSolvedTaskEventToClients is run every time a task is solved, we should probably include som logic here to find out if this team is the only team that has solved the task.

In frontend:

  1. We need something similar to the code in useLeaderboard.ts which listens for ReceiveLeaderboardEntryChange events and then performs some code.