Skip to content

Commit 98539e8

Browse files
committed
Merge branch 'feat/dashboard-agent-flows' into feat/dashboard-agent-watch
2 parents e3b2b53 + 84bd08f commit 98539e8

2 files changed

Lines changed: 13 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: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { ChatBubbleLeftRightIcon } from "@heroicons/react/20/solid";
21
import type { WatchSpec } from "@internal/dashboard-agent-contracts";
32
import { createContext, useContext } from "react";
3+
import { Button } from "~/components/primitives/Buttons";
44
import { ShortcutKey } from "~/components/primitives/ShortcutKey";
55
import { SimpleTooltip } from "~/components/primitives/Tooltip";
66
import 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
);

0 commit comments

Comments
 (0)