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 type { WatchSpec } from "@internal/dashboard-agent-contracts" ;
32import { createContext , useContext } from "react" ;
3+ import { Button } from "~/components/primitives/Buttons" ;
44import { ShortcutKey } from "~/components/primitives/ShortcutKey" ;
55import { SimpleTooltip } from "~/components/primitives/Tooltip" ;
66import type { Shortcut } from "~/hooks/useShortcutKeys" ;
7- import { cn } from "~/utils/cn" ;
87
98/**
109 * Opens and closes the panel. Registered once, by `DashboardAgent`; the launcher
@@ -78,24 +77,21 @@ export function DashboardAgentLauncher() {
7877 </ span >
7978 }
8079 button = {
81- < button
82- type = "button"
83- aria-label = { hasUnread ? "Ask Trigger, unread updates" : "Ask Trigger" }
84- onClick = { ( ) => setOpen ( true ) }
85- className = { cn (
86- "relative flex shrink-0 items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs text-text-bright transition" ,
87- "border-border-bright bg-background-bright hover:border-border-brighter"
88- ) }
89- >
90- < ChatBubbleLeftRightIcon className = "size-3.5 text-indigo-500" />
91- Ask Trigger
80+ < span className = "relative inline-flex shrink-0" >
81+ < Button
82+ variant = "ask-ai/small"
83+ aria-label = { hasUnread ? "Ask AI, unread updates" : "Ask AI" }
84+ onClick = { ( ) => setOpen ( true ) }
85+ >
86+ Ask AI
87+ </ Button >
9288 { hasUnread && (
9389 < span
9490 // Ringed so the dot reads on the header background as well as the button.
9591 className = "absolute -right-0.5 -top-0.5 size-2 rounded-full bg-indigo-500 ring-2 ring-background-dimmed"
9692 />
9793 ) }
98- </ button >
94+ </ span >
9995 }
10096 />
10197 ) ;
You can’t perform that action at this time.
0 commit comments