diff --git a/bin/web/src/lib/components/AnalysisStatus.svelte b/bin/web/src/lib/components/AnalysisStatus.svelte index 7a0b597..cc879fc 100644 --- a/bin/web/src/lib/components/AnalysisStatus.svelte +++ b/bin/web/src/lib/components/AnalysisStatus.svelte @@ -2,9 +2,10 @@ import { AnalysisStatus } from "$lib/analysisManager.svelte"; import { EventType } from "$lib/analysis.svelte"; import type { ManifestEntry } from "$lib/manifest.svelte"; - let { entry, onclick }: { + let { entry, onclick, analysis_visible}: { entry: ManifestEntry, onclick: () => void, + analysis_visible: boolean, } = $props(); let summary = $derived.by(() => { @@ -43,10 +44,9 @@ let button_class = $derived(ready ? "text-blue-600 border rounded-full px-2" : ''); - - - - + \ No newline at end of file diff --git a/bin/web/src/lib/components/ManifestCard.svelte b/bin/web/src/lib/components/ManifestCard.svelte index 6d27974..34f273e 100644 --- a/bin/web/src/lib/components/ManifestCard.svelte +++ b/bin/web/src/lib/components/ManifestCard.svelte @@ -24,19 +24,26 @@ } return current ? "bg-green-100" : "bg-gray-100" }); + let status_border_color = $derived.by(() => { + const num_warnings = entry.get_num_warnings(); + if (num_warnings !== undefined && num_warnings > 0) { + return "border-red-100"; + } + return current ? "border-green-100" : "border-gray-100" + }); let analysis_visible = $state(false); function toggle_analysis_visibility() { analysis_visible = !analysis_visible; } -