Commit 3ea8e378 authored by Felix Freiberger's avatar Felix Freiberger
Browse files

Show Bonus groups.

parent e8c8edbf
Pipeline #25344 passed with stages
in 1 minute and 38 seconds
......@@ -107,6 +107,7 @@ export type Speedups = {
export type PrivateProjectResults = {
ticksAudit: boolean;
oneWaySync: boolean;
sortKey: number;
}
export type PublicProjectResults = {
......@@ -115,6 +116,7 @@ export type PublicProjectResults = {
commit: string;
currentlyRunning: boolean;
currentlyInQueue: boolean;
bonus: boolean;
staleImage: boolean;
private?: PrivateProjectResults;
result: {
......
......@@ -31,6 +31,10 @@
align-items: flex-end;
}
.leaderboard-bonus-row {
background-color: #665A00 !important;
}
.placement-cell {
white-space: nowrap;
}
......
......@@ -116,7 +116,7 @@ const LeaderboardPage: React.FC<{}> = () => {
</thead>
<tbody>
{data.leaderboard.map((record, i) => (
<tr key={i}>
<tr key={i} className={classNames({ "leaderboard-bonus-row": record.bonus })}>
<td className="td-right placement-cell">
{ record.currentlyRunning ? <OverlayTrigger
placement="bottom"
......@@ -211,6 +211,17 @@ const LeaderboardPage: React.FC<{}> = () => {
>
<span>🚒</span>
</OverlayTrigger> : null }
{ record.bonus ? <OverlayTrigger
placement="bottom"
delay={{ show: 250, hide: 1000 }}
overlay={
<Tooltip id={`tooltip-internal-bonus-${i}`}>
<span>This group was awarded a bonus.</span>
</Tooltip>
}
>
<span></span>
</OverlayTrigger> : null }
{ i === 0 && record.result.testCompleted && record.result.correctness ? <span>👑</span> : null }
<span> </span>
{i + 1}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment