chore: fix lints and tests
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 53s
CI / Lint & Test (pull_request) Failing after 7m36s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped

This commit is contained in:
2026-01-19 19:51:10 -08:00
parent da566f408e
commit 27f69cb308
11 changed files with 1128 additions and 1003 deletions
+5 -2
View File
@@ -36,7 +36,7 @@
</script>
<div class="app-container h-screen w-screen flex flex-col bg-[var(--bg-primary)] overflow-hidden">
<StatusBar onToggleAchievements={() => achievementPanelOpen = !achievementPanelOpen} />
<StatusBar onToggleAchievements={() => (achievementPanelOpen = !achievementPanelOpen)} />
<main class="flex-1 flex overflow-hidden">
<!-- Left panel: Character display -->
@@ -56,7 +56,10 @@
<PermissionModal />
<ConfigSidebar />
<AchievementNotification />
<AchievementsPanel bind:isOpen={achievementPanelOpen} onClose={() => achievementPanelOpen = false} />
<AchievementsPanel
bind:isOpen={achievementPanelOpen}
onClose={() => (achievementPanelOpen = false)}
/>
</div>
<style>
+8 -8
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { testAchievementSound } from '$lib/sounds/achievement';
import { invoke } from '@tauri-apps/api/core';
import { testAchievementSound } from "$lib/sounds/achievement";
import { invoke } from "@tauri-apps/api/core";
async function testSound() {
testAchievementSound();
@@ -9,12 +9,12 @@
async function triggerAchievement() {
// This will trigger an achievement that hasn't been unlocked yet
try {
await invoke('check_achievements', {
eventType: 'message_sent',
data: {}
await invoke("check_achievements", {
eventType: "message_sent",
data: {},
});
} catch (error) {
console.error('Failed to trigger achievement:', error);
console.error("Failed to trigger achievement:", error);
}
}
</script>
@@ -38,8 +38,8 @@
</button>
<p class="text-sm text-gray-600 dark:text-gray-400 mt-4">
Click the first button to test just the sound effect.<br>
Click the first button to test just the sound effect.<br />
Click the second button to trigger a real achievement (if any are available to unlock).
</p>
</div>
</div>
</div>