record raw events everywhere
Some checks are pending
record-daemon / Build, check and test (push) Waiting to run

This commit is contained in:
2026-05-06 23:53:01 +02:00
parent ff713da1e8
commit fcfa55d0aa
13 changed files with 848 additions and 2043 deletions

View File

@@ -94,10 +94,11 @@ function getEventColor(event: TimestampedEvent): string {
case "phase_change":
return "#60a5fa"; // blue
case "kill":
case "champions_killed":
return getKillEventColor(event);
case "objective":
return "#fbbf24"; // yellow
case "lp_change":
return "#a78bfa"; // purple
default:
return "#9ca3af"; // gray
}
@@ -105,14 +106,13 @@ function getEventColor(event: TimestampedEvent): string {
// Get kill event color based on player involvement
function getKillEventColor(event: TimestampedEvent): string {
const rawEvent = event.event as { killer?: string; victim?: string } | null;
const rawData = event.raw_data as { Assisters?: string[] } | null;
const rawData = event.raw_data as { KillerName?: string; VictimName?: string; Assisters?: string[] } | null;
if (!rawEvent) return "#9ca3af"; // gray for unknown
if (!rawData) return "#9ca3af"; // gray for unknown
const killer = rawEvent.killer;
const victim = rawEvent.victim;
const assisters = rawData?.Assisters || [];
const killer = rawData.KillerName;
const victim = rawData.VictimName;
const assisters = rawData.Assisters || [];
// Get local player's summoner name
const localPlayerName = localPlayer.value?.riotIdGameName;