Skip to content

Commit

Permalink
add error counter
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Sep 30, 2024
1 parent f9c92f3 commit 1c5bcee
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion apps/color-buddy/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
import ContentEditable from "./components/ContentEditable.svelte";
import { titleCase } from "./lib/utils";
import { lint } from "./lib/api-calls";
import { debounce } from "vega";
Expand Down Expand Up @@ -177,7 +179,19 @@
// @ts-ignore
configStore.setRoute(x);
}}
/>
>
<div slot="menu" let:tab>
{#if tab === "eval"}
<div
class="bg-red-700 text-white rounded-full w-4 h-4 text-xs text-center flex items-center justify-center mx-1"
>
{$lintStore.currentChecks.filter(
(x) => x.kind === "success" && !x.passes
).length}
</div>
{/if}
</div>
</Nav>
</div>
<div class="bg-stone-100 h-full">
{#if palPresent && $configStore.route === "examples"}
Expand Down

0 comments on commit 1c5bcee

Please sign in to comment.