style(insights): prettier sweep on legacy-payload hotfix files

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marc-André BombeckandClaude Opus 4.7 committed 2026-05-10 09:51:02 +02:00
1 parent adab80ac81
commit da7070e222
2 files changed
+7 -5

No files matched your search

@@ -335,14 +335,14 @@ export function InsightAdvisorCard({
<p className="text-muted-foreground text-sm">{title}</p>
</CardHeader>
<CardContent className="space-y-4">
<div className="bg-muted/60 motion-reduce:animate-none h-4 w-3/4 animate-pulse rounded-md" />
<div className="bg-muted/50 motion-reduce:animate-none h-3 w-2/3 animate-pulse rounded-md" />
<div className="bg-muted/60 h-4 w-3/4 animate-pulse rounded-md motion-reduce:animate-none" />
<div className="bg-muted/50 h-3 w-2/3 animate-pulse rounded-md motion-reduce:animate-none" />
<div className="grid gap-3 lg:grid-cols-2">
{[0, 1, 2].map((i) => (
<div
key={i}
data-slot="insight-skeleton-card"
className="bg-muted/40 motion-reduce:animate-none h-20 animate-pulse rounded-lg"
className="bg-muted/40 h-20 animate-pulse rounded-lg motion-reduce:animate-none"
style={{ animationDelay: `${i * 100}ms` }}
/>
))}
@@ -384,7 +384,7 @@ export function InsightAdvisorCard({
onClick={onRegenerate}
disabled={regenerating}
data-slot="insight-retry-button"
className="self-start gap-1.5"
className="gap-1.5 self-start"
>
{regenerating ? (
<Loader2 className="h-3.5 w-3.5 animate-spin" />
+3 -1
View File
@@ -58,7 +58,9 @@ const TOKEN_REGEX = /metric:[A-Z_]+/g;
* non-string input as empty — the legacy-payload CTA owns the user-
* facing recovery path.
*/
export function parseChartTokens(text: string | null | undefined): ChartToken[] {
export function parseChartTokens(
text: string | null | undefined,
): ChartToken[] {
if (typeof text !== "string") return [];
const matches: string[] = text.match(TOKEN_REGEX) ?? [];
return matches.filter((m): m is ChartToken => ALLOWED_SET.has(m));