diff --git a/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx b/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx index ba6ff3de48b..1c8173061e0 100644 --- a/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx +++ b/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx @@ -626,7 +626,7 @@ it('shows Build with a chevron in the shared chip and text-only modes in its men mode.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true })) ) const search = [...document.querySelectorAll('[role="menuitem"]')].find( - (item) => item.textContent === 'Ask' + (item) => item.textContent === 'Search' )! expect(search.querySelector('svg')).toBeNull() expect(document.querySelector('[role="tooltip"]')).toBeNull() @@ -730,12 +730,12 @@ it.each(['skill', 'file'] as const)( mode.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true })) ) const search = [...document.querySelectorAll('[role="menuitem"]')].find( - (item) => item.textContent === 'Ask' + (item) => item.textContent === 'Search' )! await act(async () => search.click()) expect(onModeChange).not.toHaveBeenCalled() expect(info).toHaveBeenCalledWith( - 'Remove resource and skill mentions and non-image attachments before switching to Ask.' + 'Remove resource and skill mentions and non-image attachments before switching to Search.' ) expect( container.querySelector('[aria-label="Ask Sim"]')! @@ -787,7 +787,7 @@ describe('Search levels', () => { expect( row.querySelector('[aria-label="Ask Sim"]') ).not.toBeNull() - expect(mode.textContent).toBe('Ask') + expect(mode.textContent).toBe('Search') expect(mode.querySelectorAll('svg')).toHaveLength(1) expect(mode.parentElement?.nextElementSibling).toBeNull() expect(row.querySelector('[aria-label="Search level"]')).toBeNull() diff --git a/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx b/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx index d52d2780ff2..57d1cb40b36 100644 --- a/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx +++ b/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx @@ -231,7 +231,7 @@ export function Composer({ files.attachedFiles.some((file) => !isAssistantImageType(file.type))) ) { toast.info( - 'Remove resource and skill mentions and non-image attachments before switching to Ask.' + 'Remove resource and skill mentions and non-image attachments before switching to Search.' ) return } diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx index 3bdacac008b..8f0e1ab6514 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx @@ -18,6 +18,7 @@ import { import { Check, Link as LinkIcon, MoreHorizontal, Sparkles } from '@sim/emcn/icons' import { formatDate } from '@sim/utils/formatting' import { findTermMatches, queryTerms } from '@/lib/knowledge/search/snippet' +import { inter } from '@/app/_styles/fonts/inter/inter' import { SourceIcon, sourceLabel, @@ -29,7 +30,8 @@ import type { SourceTagData } from '@/app/workspace/[workspaceId]/home/component const SOURCE_ROW_CLASSES = cn( 'not-prose flex items-start gap-2 px-2 py-2 transition-colors focus-within:bg-[var(--surface-hover)]', chipHoverSurfaceClass, - chipRadiusClass + chipRadiusClass, + inter.className ) const SOURCE_ROW_MARK_CLASSES = cn(chipIconSlotClass, 'mt-0.5') @@ -140,7 +142,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source @@ -171,7 +173,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source
{source.snippet && (

diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx index fd2b85da929..9e82fe738ea 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx @@ -38,8 +38,9 @@ export function SourceIcon({ source, size = 'default' }: SourceIconProps) { if (hostname && failedHostname !== hostname) { return ( setFailedHostname(hostname)} /> diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx index d97600f4fd5..256a2b85da9 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx @@ -20,7 +20,7 @@ export function ConversationModeSelector({ const planEnabled = useFeatureFlag('mothership-plan-mode') const [open, setOpen] = useState(false) const options = [ - ...(searchEnabled ? [{ value: 'assistant', label: 'Ask' }] : []), + ...(searchEnabled ? [{ value: 'assistant', label: 'Search' }] : []), { value: 'agent', label: 'Build' }, ...(planEnabled ? [{ value: 'plan', label: 'Plan' }] : []), ] diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx index 4123a811c89..88e8aa891f3 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx @@ -1,5 +1,5 @@ import type { ComponentType } from 'react' -import { Chip, chipContentLabelClass, DropdownMenuTrigger, OverflowText, Tooltip } from '@sim/emcn' +import { Chip, DropdownMenuTrigger, OverflowText, Tooltip } from '@sim/emcn' import { ChevronDown } from '@sim/emcn/icons' interface ModelSettingTriggerProps { @@ -21,6 +21,7 @@ export function ModelSettingTrigger({ {showChevron && (