feat(webapp): name the dashboard agent Ask Trigger everywhere

The launcher spelled it out while every other surface read it from the shared label.
This commit is contained in:
Katia Bulatova
2026-08-07 10:36:11 +00:00
parent c37bdf81cb
commit 5edfd78f80
2 changed files with 5 additions and 4 deletions
@@ -1,7 +1,7 @@
import { ChatBubbleLeftRightIcon } from "@heroicons/react/20/solid";
// TODO(TRI-12763): swap in the final character icon and product name here.
export const AGENT_NAME = "Agent";
// TODO(TRI-12763): swap in the final character icon here.
export const AGENT_NAME = "Trigger";
export const ASK_AGENT_LABEL = `Ask ${AGENT_NAME}`;
@@ -3,6 +3,7 @@ import { Button } from "~/components/primitives/Buttons";
import { ShortcutKey } from "~/components/primitives/ShortcutKey";
import { SimpleTooltip } from "~/components/primitives/Tooltip";
import type { Shortcut } from "~/hooks/useShortcutKeys";
import { ASK_AGENT_LABEL } from "./agent-identity";
// Registered once, by `DashboardAgent`. The launcher only displays it.
export const TOGGLE_PANEL_SHORTCUT: Shortcut = {
@@ -53,8 +54,8 @@ export function DashboardAgentLauncher() {
}
button={
<span className="relative inline-flex shrink-0">
<Button variant="ask-ai/small" aria-label="Ask Trigger" onClick={() => setOpen(true)}>
Ask Trigger
<Button variant="ask-ai/small" aria-label={ASK_AGENT_LABEL} onClick={() => setOpen(true)}>
{ASK_AGENT_LABEL}
</Button>
</span>
}