diff --git a/frontend/src/app.css b/frontend/src/app.css index b2d103a..93a802d 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -277,6 +277,18 @@ body { color: hsl(136 48% 26%); } +.editorial-alert--warning { + border-color: hsl(42 78% 68%); + background: hsl(45 86% 92%); + color: hsl(36 68% 28%); +} + +.editorial-alert--info { + border-color: hsl(204 56% 70%); + background: hsl(207 72% 93%); + color: hsl(207 78% 28%); +} + .products-table-shell { border: 1px solid hsl(35 24% 74% / 0.85); border-radius: 0.9rem; diff --git a/frontend/src/lib/components/AutoFixBadge.svelte b/frontend/src/lib/components/AutoFixBadge.svelte new file mode 100644 index 0000000..347c624 --- /dev/null +++ b/frontend/src/lib/components/AutoFixBadge.svelte @@ -0,0 +1,25 @@ + + +{#if autoFixes && autoFixes.length > 0} +
Automatically adjusted
+{reasoningChain}
+ {prefix.replace(':', '')}
+ {/if} + {#if cleanedErrors.length === 1} +{cleanedErrors[0]}
+ {:else} +Validation Warnings
+