Skip to content

Commit 7da3f2e

Browse files
committed
refactor(dashboard, docs): finish SparkleIcon sweep
Second pass through the callsites the first commit missed: - smart-insights and cockpit-signals use Lightbulb for the insight generation / idea state - agent-page-content swaps Sparkle for Lightbulb (ideas) and Coins (credit balance) - feature-gate, ambassadors/sponsors hero pick icons that fit the surrounding copy instead of a generic sparkle
1 parent 542edca commit 7da3f2e

6 files changed

Lines changed: 17 additions & 16 deletions

File tree

apps/dashboard/app/(main)/home/_components/smart-insights-section.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { ArrowClockwiseIcon } from "@phosphor-icons/react/dist/ssr/ArrowClockwise";
44
import { CheckCircleIcon } from "@phosphor-icons/react/dist/ssr/CheckCircle";
5-
import { SparkleIcon } from "@phosphor-icons/react/dist/ssr/Sparkle";
5+
import { LightbulbIcon } from "@phosphor-icons/react/dist/ssr/Lightbulb";
66
import { WarningCircleIcon } from "@phosphor-icons/react/dist/ssr/WarningCircle";
77
import { useState } from "react";
88
import { InsightCard } from "@/app/(main)/insights/_components/insight-card";
@@ -46,7 +46,7 @@ function AnalyzingState() {
4646
<div className="divide-y">
4747
<div className="flex items-center gap-3 px-5 py-4">
4848
<div className="flex size-7 shrink-0 items-center justify-center rounded bg-primary/10">
49-
<SparkleIcon
49+
<LightbulbIcon
5050
className="size-4 animate-pulse text-primary"
5151
weight="duotone"
5252
/>
@@ -135,7 +135,7 @@ export function SmartInsightsSection({
135135
<Card className={variant === "full" ? "min-h-0 flex-1" : ""}>
136136
<Card.Header className="flex-row items-center justify-between gap-3">
137137
<div className="flex items-center gap-2">
138-
<SparkleIcon className="size-4 text-primary" weight="duotone" />
138+
<LightbulbIcon className="size-4 text-primary" weight="duotone" />
139139
<Card.Title className="text-sm">Actionable Insights</Card.Title>
140140
</div>
141141
</Card.Header>
@@ -149,7 +149,7 @@ export function SmartInsightsSection({
149149
<Card className={variant === "full" ? "min-h-0 flex-1" : ""}>
150150
<Card.Header className="flex-row items-center justify-between gap-3">
151151
<div className="flex items-center gap-2">
152-
<SparkleIcon className="size-4 text-primary" weight="duotone" />
152+
<LightbulbIcon className="size-4 text-primary" weight="duotone" />
153153
<Card.Title className="text-sm">Actionable Insights</Card.Title>
154154
</div>
155155
</Card.Header>
@@ -166,7 +166,7 @@ export function SmartInsightsSection({
166166
<Card.Header className="flex-row items-center justify-between gap-3">
167167
<div className="min-w-0 flex-1">
168168
<div className="flex items-center gap-2">
169-
<SparkleIcon
169+
<LightbulbIcon
170170
className="size-4 shrink-0 text-primary"
171171
weight="duotone"
172172
/>

apps/dashboard/app/(main)/insights/_components/cockpit-signals.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ function InsightsFetchStatusRow({
439439
className="size-4 shrink-0 animate-spin text-primary"
440440
/>
441441
) : (
442-
<SparkleIcon
442+
<LightbulbIcon
443443
aria-hidden
444444
className="size-4 shrink-0 animate-pulse text-primary"
445445
weight="duotone"

apps/dashboard/app/(main)/websites/[id]/agent/_components/agent-page-content.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import {
44
ArrowRightIcon,
55
BrainIcon,
66
ChartBarIcon,
7+
CoinsIcon,
8+
LightbulbIcon,
79
LightningIcon,
8-
SparkleIcon,
910
TableIcon,
1011
} from "@phosphor-icons/react";
1112
import { useQuery } from "@tanstack/react-query";
@@ -214,7 +215,7 @@ function WelcomeState({
214215
: prompts.map((item, idx) => {
215216
const Icon =
216217
item.source === "insight"
217-
? SparkleIcon
218+
? LightbulbIcon
218219
: (FALLBACK_ICONS[idx] ?? FALLBACK_ICONS[0]);
219220
return (
220221
<button
@@ -287,7 +288,7 @@ function AgentCreditBalance() {
287288
onClick={() => router.push("/billing")}
288289
type="button"
289290
>
290-
<SparkleIcon className="size-3" weight="duotone" />
291+
<CoinsIcon className="size-3" weight="duotone" />
291292
<span className="font-medium tabular-nums">∞ credits</span>
292293
</button>
293294
</Tooltip>
@@ -318,7 +319,7 @@ function AgentCreditBalance() {
318319
onClick={() => router.push(isEmpty ? "/billing#topup" : "/billing")}
319320
type="button"
320321
>
321-
<SparkleIcon className="size-3" weight="duotone" />
322+
<CoinsIcon className="size-3" weight="duotone" />
322323
<span className="font-medium tabular-nums">
323324
{balance.toLocaleString()} / {limit.toLocaleString()}
324325
</span>

apps/dashboard/components/feature-gate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ArrowRightIcon } from "@phosphor-icons/react";
1010
import { CrownIcon } from "@phosphor-icons/react";
1111
import { LockSimpleIcon } from "@phosphor-icons/react";
1212
import { RocketLaunchIcon } from "@phosphor-icons/react";
13-
import { SparkleIcon } from "@phosphor-icons/react";
13+
import { LeafIcon } from "@phosphor-icons/react";
1414
import { StarIcon } from "@phosphor-icons/react";
1515
import Link from "next/link";
1616
import type { ReactNode } from "react";
@@ -25,7 +25,7 @@ const PLAN_CONFIG: Record<
2525
> = {
2626
[PLAN_IDS.FREE]: {
2727
name: "Free",
28-
icon: SparkleIcon,
28+
icon: LeafIcon,
2929
color: "text-muted-foreground",
3030
},
3131
[PLAN_IDS.HOBBY]: {

apps/docs/app/(home)/ambassadors/ambassador-hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
GiftIcon,
66
HeartIcon,
77
RocketLaunchIcon,
8-
SparkleIcon,
8+
TrophyIcon,
99
} from "@phosphor-icons/react";
1010
import { SciFiCard } from "@/components/scifi-card";
1111

@@ -77,7 +77,7 @@ export default function AmbassadorHero() {
7777
/>
7878
<FeatureCard
7979
description="Stand out"
80-
icon={SparkleIcon}
80+
icon={TrophyIcon}
8181
title="Recognition"
8282
/>
8383
</div>

apps/docs/app/(home)/sponsors/sponsors-hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import type { IconWeight } from "@phosphor-icons/react";
4-
import { HeartIcon, SparkleIcon } from "@phosphor-icons/react";
4+
import { HeartIcon, StarIcon } from "@phosphor-icons/react";
55
import { SciFiCard } from "@/components/scifi-card";
66

77
interface SponsorsHeroProps {
@@ -80,7 +80,7 @@ export default function SponsorsHero({
8080
/>
8181
<StatCard
8282
description="Featured partners"
83-
icon={SparkleIcon}
83+
icon={StarIcon}
8484
label="Featured Sponsors"
8585
value={featuredSponsors}
8686
/>

0 commit comments

Comments
 (0)