Skip to content

Commit 0dd4c8d

Browse files
authored
improvement(search): keep search history on the Search page only (#8316)
1 parent be4461b commit 0dd4c8d

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

‎apps/sim/app/o/[organizationId]/home/organization-home.tsx‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
getMothershipAttachmentUrl,
1717
} from '@/lib/mothership/chat/attachment-preview'
1818
import { createSearchResource } from '@/lib/mothership/resources/search'
19-
import { SearchLandingHistory } from '@/app/o/[organizationId]/components/search-landing-history'
2019
import { Composer } from '@/app/o/[organizationId]/home/components/composer'
2120
import { GetStarted } from '@/app/o/[organizationId]/home/components/get-started'
2221
import { organizationHomeParsers } from '@/app/o/[organizationId]/home/search-params'
@@ -408,18 +407,9 @@ function OrganizationHomeContent({
408407
: `What should we get done${firstName ? `, ${firstName}` : ''}?`}
409408
</h1>
410409
<div className='relative w-full max-w-chat'>
411-
{requestMode === 'assistant' && searchAccess.memberScoped && userId ? (
412-
<SearchLandingHistory
413-
organizationId={organization.id}
414-
userId={userId}
415-
onSearch={(query) => submit(query)}
416-
>
417-
{composer}
418-
</SearchLandingHistory>
419-
) : (
420-
composer
421-
)}
422-
<div className={requestMode === 'agent' ? 'absolute inset-x-0 top-full' : 'mt-4'}>
410+
{composer}
411+
{/* Anchored out of flow so expanding/collapsing never shifts the centered input */}
412+
<div className='absolute inset-x-0 top-full'>
423413
{requestMode === 'agent' ? (
424414
<SuggestedActions
425415
organizationId={organization.id}

0 commit comments

Comments
 (0)