File tree Expand file tree Collapse file tree
apps/webapp/app/components/dashboard-agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { SparklesIcon } from "@heroicons/react/20/solid" ;
21import type { AgentPageContext , SuggestedPrompt } from "@internal/dashboard-agent-contracts" ;
32import { BetaBadge } from "~/components/FeatureBadges" ;
3+ import { AgentDotMatrix } from "~/components/primitives/AgentDotMatrix" ;
44import { Header1 } from "~/components/primitives/Headers" ;
55import { Paragraph } from "~/components/primitives/Paragraph" ;
66import { 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" >
Original file line number Diff line number Diff line change 1- import { ChatBubbleLeftRightIcon } from "@heroicons/react/20/solid" ;
21import { createContext , useContext } from "react" ;
2+ import { Button } from "~/components/primitives/Buttons" ;
33import { ShortcutKey } from "~/components/primitives/ShortcutKey" ;
44import { SimpleTooltip } from "~/components/primitives/Tooltip" ;
55import 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 ) ;
You can’t perform that action at this time.
0 commit comments