@@ -95,17 +95,6 @@
style={`max-width: ${maxWidth - 4}px`}
>
- {#if Object.keys(currentPal.evalConfig)}
-
-
-
- {/if}
-
diff --git a/apps/color-buddy/src/linting/EvalResponse.svelte b/apps/color-buddy/src/linting/EvalResponse.svelte
index 2c9108d..77ca683 100644
--- a/apps/color-buddy/src/linting/EvalResponse.svelte
+++ b/apps/color-buddy/src/linting/EvalResponse.svelte
@@ -169,7 +169,7 @@
class={buttonStyle}
on:click={() => {
lintStore.setFocusedLint(lintProgram.id);
- configStore.setEvalDisplayMode("lint-customization");
+ configStore.setEvalDisplayMode("check-customization");
}}
>
Customize
diff --git a/apps/color-buddy/src/linting/GlobalLintConfigModal.svelte b/apps/color-buddy/src/linting/GlobalLintConfigModal.svelte
index e5e947f..2a0536f 100644
--- a/apps/color-buddy/src/linting/GlobalLintConfigModal.svelte
+++ b/apps/color-buddy/src/linting/GlobalLintConfigModal.svelte
@@ -10,6 +10,7 @@
$: lints = [...$lintStore.lints].sort((a, b) => a.name.localeCompare(b.name));
$: ignoreList = $colorStore.globallyIgnoredLints;
$: ignoredSet = new Set(ignoreList);
+ $: currentPal = $colorStore.palettes[$colorStore.currentPal];
$: lintsByGroup = lints.reduce(
(acc, lint) => {
@@ -68,6 +69,16 @@
{/each}
Help
+ {#if Object.keys(currentPal.evalConfig)}
+
+
+
+ {/if}
diff --git a/apps/color-buddy/src/linting/NewLintSuggestion.svelte b/apps/color-buddy/src/linting/NewLintSuggestion.svelte
index 9a7b49f..1144693 100644
--- a/apps/color-buddy/src/linting/NewLintSuggestion.svelte
+++ b/apps/color-buddy/src/linting/NewLintSuggestion.svelte
@@ -51,7 +51,7 @@
setTimeout(() => {
loadLints();
lintPrompt = "";
- configStore.setEvalDisplayMode("lint-customization");
+ configStore.setEvalDisplayMode("check-customization");
}, 100);
requestState = "loaded";
@@ -97,7 +97,7 @@
failMessage: "",
program: "true",
});
- configStore.setEvalDisplayMode("lint-customization");
+ configStore.setEvalDisplayMode("check-customization");
}}
>
Just give me a blank one
diff --git a/apps/color-buddy/src/stores/config-store.ts b/apps/color-buddy/src/stores/config-store.ts
index 7ce8328..6f56638 100644
--- a/apps/color-buddy/src/stores/config-store.ts
+++ b/apps/color-buddy/src/stores/config-store.ts
@@ -17,7 +17,7 @@ interface StoreData {
| (typeof deltaMetrics)[number]
| (typeof contrastMetrics)[number]
| "none";
- evalDisplayMode: "regular" | "compact" | "lint-customization";
+ evalDisplayMode: "regular" | "compact" | "check-customization";
exampleRoute: "svg" | "vega" | "swatches";
includeQuotes: boolean;
mainColumnSelectedExample: number;