"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#L179SendSolvedTaskEventToClients 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.
And then Add a new SignalR message in ICtfSignalrHubClient named something like ReceiveFirstBlood(SolvedTaskReadModel solvedTask)
In frontend:
We need something similar to the code in useLeaderboard.ts which listens for ReceiveLeaderboardEntryChange events and then performs some code.
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.ICtfSignalrHubClient
named something likeReceiveFirstBlood(SolvedTaskReadModel solvedTask)
In frontend:
useLeaderboard.ts
which listens forReceiveLeaderboardEntryChange
events and then performs some code.