tauri-app: fix highlights including objectives
record-daemon / Build, check and test (push) Successful in 2m6s

This commit is contained in:
2026-05-17 17:09:24 +02:00
parent f9ff272798
commit c99fae33b6
2 changed files with 4 additions and 44 deletions
+1 -12
View File
@@ -41,7 +41,6 @@ const typeToggles = ref<Record<HighlightType, boolean>>({
kill: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("kill"),
death: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("death"),
assist: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("assist"),
objective: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("objective"),
multi_kill: DEFAULT_HIGHLIGHT_SETTINGS.included_types.includes("multi_kill"),
});
@@ -82,7 +81,6 @@ const activeClipId = computed(() => {
// Stats
const killCount = computed(() => props.highlights.filter(h => h.highlight_type === "kill").length);
const deathCount = computed(() => props.highlights.filter(h => h.highlight_type === "death").length);
const objectiveCount = computed(() => props.highlights.filter(h => h.highlight_type === "objective").length);
const multiKillCount = computed(() => props.highlights.filter(h => h.highlight_type === "multi_kill").length);
const assistCount = computed(() => props.highlights.filter(h => h.highlight_type === "assist").length);
const totalDuration = computed(() => {
@@ -174,7 +172,6 @@ function formatClipDuration(clip: HighlightClip): string {
{ type: 'kill' as HighlightType, label: 'Kills', icon: '⚔️' },
{ type: 'death' as HighlightType, label: 'Deaths', icon: '💀' },
{ type: 'assist' as HighlightType, label: 'Assists', icon: '🤝' },
{ type: 'objective' as HighlightType, label: 'Objectives', icon: '🏰' },
{ type: 'multi_kill' as HighlightType, label: 'Multi Kills', icon: '🔥' },
]"
:key="typeInfo.type"
@@ -230,9 +227,6 @@ function formatClipDuration(clip: HighlightClip): string {
<div class="stat-pill" v-if="assistCount > 0">
<span>🤝</span> {{ assistCount }}
</div>
<div class="stat-pill" v-if="objectiveCount > 0">
<span>🏰</span> {{ objectiveCount }}
</div>
<div class="stat-pill" v-if="multiKillCount > 0">
<span>🔥</span> {{ multiKillCount }}
</div>
@@ -263,7 +257,7 @@ function formatClipDuration(clip: HighlightClip): string {
<div v-if="highlights.length === 0" class="empty-highlights">
<div class="empty-icon">🎬</div>
<p>No highlights detected</p>
<p class="empty-hint">Highlights are generated from kills, deaths, and objectives during the game.</p>
<p class="empty-hint">Highlights are generated from kills, deaths, and multi-kills during the game.</p>
</div>
<!-- Highlights List -->
@@ -605,11 +599,6 @@ function formatClipDuration(clip: HighlightClip): string {
background: rgba(167, 139, 250, 0.08);
}
.highlight-card.active.objective {
border-color: rgba(251, 191, 36, 0.4);
background: rgba(251, 191, 36, 0.08);
}
.highlight-card.active.multi_kill {
border-color: rgba(249, 115, 22, 0.4);
background: rgba(249, 115, 22, 0.08);