The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): onboarding cards get main's step icons back
alt-glitch8d91ef299ce9
diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsxindex 5add2b4b76e..051a1d81d54 100644--- a/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx+++ b/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx@@ -3,6 +3,7 @@import type { CatalogPluginPresence, PluginsManageResult } from '@hermes/shared'import { useStore } from '@nanostores/react'import { useQuery } from '@tanstack/react-query'+import { Puzzle } from 'lucide-react'import { useSessionView } from '@/app/chat/session-view'import { useConnectionOwner } from '@/components/assistant-ui/use-connection-owner'@@ -32,6 +33,12 @@ async function openInstall(name: string, profile: string): Promise<void> {}}+const PLUGIN_ICON = (+ <span className="grid size-7 shrink-0 place-items-center rounded-full bg-background text-muted-foreground">+ <Puzzle className="size-4" />+ </span>+)+/** The plugins this OS runs, from the card payload; Install opens the reviewed install dialog in place,* Continue answers with the ones installed. */export function PluginsCard({@@ -75,6 +82,7 @@ export function PluginsCard({return (<ChipclassName="w-full"+ icon={PLUGIN_ICON}key={row.name}label={row.title || row.name}on={on}diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsxindex f949d3046d7..804b31e4d20 100644--- a/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsx+++ b/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsx@@ -3,12 +3,15 @@import type { ToolCallMessagePartProps } from '@assistant-ui/react'import type { SetupBeat } from '@hermes/shared'import { useStore } from '@nanostores/react'-import { type ReactNode, useState } from 'react'+import { Puzzle } from 'lucide-react'+import { type ComponentType, type ReactNode, useState } from 'react'import { useSessionView } from '@/app/chat/session-view'+import { CLARIFY_ICON_CLASS } from '@/components/assistant-ui/clarify/core/shell'import { ConnectorDirectoryCard } from '@/components/assistant-ui/connector-directory-card'import { AccentPickerCard } from '@/components/assistant-ui/theme-picker/accent-picker-card'import { LayoutPickerCard } from '@/components/assistant-ui/theme-picker/layout-picker-card'+import { LayoutDashboard, MessageQuestion, Palette, Plug } from '@/lib/icons'import { cn } from '@/lib/utils'import { applyAppearance } from '@/store/appearance-apply'import {@@ -83,10 +86,26 @@ function BeatBody({ answer, request }: { answer: (picks: SetupBeatAnswer) => voi}}+// The theme beat picks the accent, so it carries the accent's palette icon.+const BEAT_ICONS = {+ build: MessageQuestion,+ connectors: Plug,+ layout: LayoutDashboard,+ name: MessageQuestion,+ plugins: Puzzle,+ theme: Palette,+ tour: MessageQuestion+} satisfies Record<SetupBeat, ComponentType<{ className?: string }>>+function BeatShell({ beat, children, question }: { beat: SetupBeat; children: ReactNode; question: string }) {+ const Icon = BEAT_ICONS[beat]+return (<div className={cn(SETUP_BEAT_SHELL_CLASS, 'grid gap-3')} data-setup-beat={beat}>- {question && <span className={SETUP_BEAT_LABEL_CLASS}>{question}</span>}+ <div className="flex items-start gap-2">+ <span className={cn(SETUP_BEAT_LABEL_CLASS, 'flex-1')}>{question}</span>+ <Icon aria-hidden className={CLARIFY_ICON_CLASS} />+ </div>{children}</div>)