Skip to content

Commit f9ce950

Browse files
committed
fix(search): label balanced search level Auto
1 parent 1f85ecd commit f9ce950

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,13 +737,13 @@ describe('Search levels', () => {
737737
expect(mocks.submit).toHaveBeenCalledWith('First line\nSecond line', [])
738738
})
739739

740-
it.each(['Fast', 'Adaptive', 'Max'])(
740+
it.each(['Fast', 'Auto', 'Max'])(
741741
'selects %s without losing the draft or image',
742742
async (label) => {
743743
await render(true, 'Preserved question')
744744
await paste([new File(['image'], 'screenshot.png', { type: 'image/png' })])
745745
const picker = container.querySelector<HTMLButtonElement>('[aria-label="Search level"]')!
746-
expect(picker.textContent).toBe('Adaptive')
746+
expect(picker.textContent).toBe('Auto')
747747
expect(picker.nextElementSibling?.getAttribute('aria-label')).toBe('Voice input')
748748
await act(async () =>
749749
picker.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true }))
@@ -774,7 +774,7 @@ describe('Search levels', () => {
774774
row.querySelector<HTMLInputElement | HTMLTextAreaElement>('[aria-label="Ask Sim"]')
775775
).not.toBeNull()
776776
expect(mode.nextElementSibling?.getAttribute('aria-label')).toBe('Attach images')
777-
expect(row.querySelector('[aria-label="Search level"]')?.textContent).toBe('Adaptive')
777+
expect(row.querySelector('[aria-label="Search level"]')?.textContent).toBe('Auto')
778778
})
779779
})
780780

@@ -802,7 +802,7 @@ it.each([true, false])(
802802
(item) => item.textContent
803803
)
804804
expect(options).toEqual(
805-
allowNoAssistant ? ['None', 'Fast', 'Adaptive', 'Max'] : ['Fast', 'Adaptive', 'Max']
805+
allowNoAssistant ? ['None', 'Fast', 'Auto', 'Max'] : ['Fast', 'Auto', 'Max']
806806
)
807807
}
808808
)

apps/sim/app/o/[organizationId]/home/components/composer/search-level-selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { SearchLevel } from '@/app/o/[organizationId]/home/search-params'
1010
const SEARCH_LEVELS = [
1111
{ value: 'none', label: 'None', description: 'Search results without an assistant' },
1212
{ value: 'fast', label: 'Fast', description: 'Faster and cheaper' },
13-
{ value: 'adaptive', label: 'Adaptive', description: 'Balanced speed and depth' },
13+
{ value: 'adaptive', label: 'Auto', description: 'Balanced speed and depth' },
1414
{ value: 'max', label: 'Max', description: 'Thorough research and verification' },
1515
] as const satisfies ReadonlyArray<{
1616
value: SearchLevel

0 commit comments

Comments
 (0)