Skip to content

Commit 84bd08f

Browse files
committed
feat(webapp): the launcher and blank state adopt the new Ask AI branding
The header button is the ask-ai Button variant (dot-matrix logo, 'Ask AI'); the hero title follows suit.
1 parent 15d53bd commit 84bd08f

2 files changed

Lines changed: 7 additions & 17 deletions

File tree

apps/webapp/app/components/dashboard-agent/DashboardAgentHero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SparklesIcon } from "@heroicons/react/20/solid";
21
import type { AgentPageContext, SuggestedPrompt } from "@internal/dashboard-agent-contracts";
32
import { BetaBadge } from "~/components/FeatureBadges";
3+
import { AgentDotMatrix } from "~/components/primitives/AgentDotMatrix";
44
import { Header1 } from "~/components/primitives/Headers";
55
import { Paragraph } from "~/components/primitives/Paragraph";
66
import { DashboardAgentSuggestedPrompts } from "./DashboardAgentSuggestedPrompts";
@@ -39,8 +39,8 @@ export function DashboardAgentHero({
3939
<div className="flex w-full max-w-2xl flex-col items-center gap-5">
4040
<div className="flex flex-col items-center gap-1.5 text-center">
4141
<Header1 className="flex items-center gap-2">
42-
<SparklesIcon className="size-6 text-indigo-500" />
43-
Ask Trigger
42+
<AgentDotMatrix size={22} palette="mono" restColor="#ffffff" decorative />
43+
Ask AI
4444
<BetaBadge />
4545
</Header1>
4646
<Paragraph variant="small" className="text-text-dimmed">

apps/webapp/app/components/dashboard-agent/dashboardAgentLauncher.tsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { ChatBubbleLeftRightIcon } from "@heroicons/react/20/solid";
21
import { createContext, useContext } from "react";
2+
import { Button } from "~/components/primitives/Buttons";
33
import { ShortcutKey } from "~/components/primitives/ShortcutKey";
44
import { SimpleTooltip } from "~/components/primitives/Tooltip";
55
import type { Shortcut } from "~/hooks/useShortcutKeys";
6-
import { cn } from "~/utils/cn";
76

87
/**
98
* Opens and closes the panel. Registered once, by `DashboardAgent`; the launcher
@@ -63,18 +62,9 @@ export function DashboardAgentLauncher() {
6362
</span>
6463
}
6564
button={
66-
<button
67-
type="button"
68-
aria-label="Ask Trigger"
69-
onClick={() => setOpen(true)}
70-
className={cn(
71-
"relative flex shrink-0 items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs text-text-bright transition",
72-
"border-border-bright bg-background-bright hover:border-border-brighter"
73-
)}
74-
>
75-
<ChatBubbleLeftRightIcon className="size-3.5 text-indigo-500" />
76-
Ask Trigger
77-
</button>
65+
<Button variant="ask-ai/small" aria-label="Ask AI" onClick={() => setOpen(true)}>
66+
Ask AI
67+
</Button>
7868
}
7969
/>
8070
);

0 commit comments

Comments
 (0)