From 1377747012952b4bd0f5a5ee6889c6f355c121e6 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 21:40:57 +0530 Subject: [PATCH 01/15] fixed Next step shows offline and search alternate text for mark as done CTA --- src/components/OptionListContextProvider.tsx | 23 ++++++++-- .../Search/SearchFiltersChatsSelector.tsx | 3 ++ src/hooks/useFilteredOptions.ts | 24 +++++++--- src/libs/OptionsListUtils/index.ts | 46 +++++++++++++++++-- src/libs/OptionsListUtils/types.ts | 1 + .../iou/request/step/IOURequestEditReport.tsx | 1 + .../iou/request/step/IOURequestStepReport.tsx | 2 +- 7 files changed, 86 insertions(+), 14 deletions(-) diff --git a/src/components/OptionListContextProvider.tsx b/src/components/OptionListContextProvider.tsx index 17b520f61824..2199b4adfe80 100644 --- a/src/components/OptionListContextProvider.tsx +++ b/src/components/OptionListContextProvider.tsx @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import React, {createContext, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react'; import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; import useOnyx from '@hooks/useOnyx'; @@ -73,18 +74,20 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) { const privateIsArchivedMap = usePrivateIsArchivedMap(); const sortedActions = useSortedActions(); const hasInitialData = useMemo(() => Object.keys(personalDetails ?? {}).length > 0, [personalDetails]); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); + const getReprocessedReportOption = useCallback( (report: OnyxEntry | null, reportID: string, policyID?: string) => { const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${reportID}`]; const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${policyID ?? report?.policyID}`]; - return processReport(report, personalDetails, privateIsArchived, policy, reportAttributes?.reports).reportOption; + return processReport(report, personalDetails, privateIsArchived, policy, reportAttributes?.reports, undefined, undefined, isTrackIntentUser).reportOption; }, - [allPolicies, personalDetails, privateIsArchivedMap, reportAttributes?.reports], + [allPolicies, personalDetails, privateIsArchivedMap, reportAttributes?.reports, isTrackIntentUser], ); const loadOptions = useCallback(() => { - const optionLists = createOptionList(personalDetails, privateIsArchivedMap, reports, allPolicies, reportAttributes?.reports); + const optionLists = createOptionList(personalDetails, privateIsArchivedMap, reports, allPolicies, reportAttributes?.reports, undefined, undefined, isTrackIntentUser); setOptions({ reports: optionLists.reports, personalDetails: optionLists.personalDetails, @@ -272,6 +275,9 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) { reports, allPolicies, reportAttributes?.reports, + undefined, + undefined, + isTrackIntentUser, ); setOptions((prevOptions) => ({ ...prevOptions, @@ -319,7 +325,16 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) { } // since personal details are not a collection, we need to recreate the whole list from scratch - const newPersonalDetailsOptions = createOptionList(personalDetails, privateIsArchivedMap, reports, allPolicies, reportAttributes?.reports).personalDetails; + const newPersonalDetailsOptions = createOptionList( + personalDetails, + privateIsArchivedMap, + reports, + allPolicies, + reportAttributes?.reports, + undefined, + undefined, + isTrackIntentUser, + ).personalDetails; setOptions((prevOptions) => { const newOptions = {...prevOptions}; diff --git a/src/components/Search/SearchFiltersChatsSelector.tsx b/src/components/Search/SearchFiltersChatsSelector.tsx index 58d9948677da..e6c1c636503c 100644 --- a/src/components/Search/SearchFiltersChatsSelector.tsx +++ b/src/components/Search/SearchFiltersChatsSelector.tsx @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import passthroughPolicyTagListSelector from '@selectors/PolicyTagList'; import React, {useEffect, useState} from 'react'; import {usePersonalDetails} from '@components/OnyxListItemProvider'; @@ -73,6 +74,7 @@ function SearchFiltersChatsSelector({initialReportIDs, onFiltersUpdate, isScreen const privateIsArchivedMap = usePrivateIsArchivedMap(); const [policyTags] = useOnyx(ONYXKEYS.COLLECTION.POLICY_TAGS, {selector: passthroughPolicyTagListSelector}); const sortedActions = useSortedActions(); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const selectedOptions: OptionData[] = selectedReportIDs.map((id) => { const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${id}`]; @@ -101,6 +103,7 @@ function SearchFiltersChatsSelector({initialReportIDs, onFiltersUpdate, isScreen policyCollection: allPolicies, sortedActions, conciergeReportID, + isTrackIntentUser, }).options; const chatOptions = filterAndOrderOptions(defaultOptions, cleanSearchTerm, countryCode, loginList, currentUserEmail, currentUserAccountID, personalDetails, { diff --git a/src/hooks/useFilteredOptions.ts b/src/hooks/useFilteredOptions.ts index 2b4973b3d16c..dd32ce9fab22 100644 --- a/src/hooks/useFilteredOptions.ts +++ b/src/hooks/useFilteredOptions.ts @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import {useMemo, useState} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; import {createFilteredOptionList} from '@libs/OptionsListUtils'; @@ -74,6 +75,7 @@ function useFilteredOptions(config: UseFilteredOptionsConfig = {}): UseFilteredO const [allPersonalDetails] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST); const [allPolicies] = useOnyx(ONYXKEYS.COLLECTION.POLICY); const reportAttributesDerived = useReportAttributes(); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const privateIsArchivedMap = usePrivateIsArchivedMap(); @@ -83,12 +85,22 @@ function useFilteredOptions(config: UseFilteredOptionsConfig = {}): UseFilteredO const options: OptionList | null = useMemo( () => enabled && allReports && allPersonalDetails - ? createFilteredOptionList(allPersonalDetails, allReports, reportAttributesDerived, privateIsArchivedMap, allPolicies, { - maxRecentReports: reportsLimit, - includeP2P, - isSearching, - betas, - }) + ? createFilteredOptionList( + allPersonalDetails, + allReports, + reportAttributesDerived, + privateIsArchivedMap, + allPolicies, + { + maxRecentReports: reportsLimit, + includeP2P, + isSearching, + betas, + }, + undefined, + undefined, + isTrackIntentUser, + ) : null, [enabled, allReports, allPersonalDetails, reportAttributesDerived, privateIsArchivedMap, allPolicies, reportsLimit, includeP2P, isSearching, betas], ); diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index e5ff8b4c4941..8d010d7136f5 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -440,6 +440,7 @@ type GetAlternateTextConfig = { conciergeReportID: string | undefined; // TODO: Remove optional (?) once all callers pass sortedActions. Refactor issue: https://github.com/Expensify/App/issues/66381 sortedActions?: Record; + isTrackIntentUser?: boolean; }; /** @@ -458,6 +459,7 @@ function getAlternateText( policyTags, conciergeReportID, sortedActions, + isTrackIntentUser, }: GetAlternateTextConfig, ) { const report = getReportOrDraftReport(option.reportID); @@ -479,6 +481,7 @@ function getAlternateText( policyTags, conciergeReportID, sortedActions, + isTrackIntentUser, }); const reportPrefix = getReportSubtitlePrefix(report); const formattedLastMessageTextWithPrefix = reportPrefix + formattedLastMessageText; @@ -1077,6 +1080,7 @@ type CreateOptionParams = { policyTags?: OnyxEntry; visibleReportActionsData?: VisibleReportActionsDerivedValue; translate?: LocalizedTranslate; + isTrackIntentUser?: boolean; // TODO: conciergeReportID will be required eventually. Refactor issue: https://github.com/Expensify/App/issues/66411 conciergeReportID?: string; // TODO: Remove optional (?) once all callers pass sortedActions. Refactor issue: https://github.com/Expensify/App/issues/66381 @@ -1097,6 +1101,7 @@ function createOption({ policyTags, visibleReportActionsData = {}, translate, + isTrackIntentUser, conciergeReportID, sortedActions, }: CreateOptionParams): SearchOptionData { @@ -1176,12 +1181,14 @@ function createOption({ translate: translateFn, report, lastActorDetails, + policy, isReportArchived: result.private_isArchived, visibleReportActionsDataParam: visibleReportActionsData, reportAttributesDerived, policyTags, conciergeReportID, sortedActions, + isTrackIntentUser, }); result.alternateText = showPersonalDetails && personalDetail?.login @@ -1272,6 +1279,7 @@ function getReportOption( policyTags: reportPolicyTags, visibleReportActionsData, conciergeReportID, + isTrackIntentUser: true, }); // Update text & alternateText because createOption returns workspace name only if report is owned by the user @@ -1329,6 +1337,7 @@ function getReportDisplayOption( reportAttributesDerived, policyTags, visibleReportActionsData, + isTrackIntentUser: true, }); // Update text & alternateText because createOption returns workspace name only if report is owned by the user @@ -1381,6 +1390,7 @@ function getPolicyExpenseReportOption( reportAttributesDerived, policyTags, visibleReportActionsData, + isTrackIntentUser: true, }); // Update text & alternateText because createOption returns workspace name only if report is owned by the user @@ -1492,6 +1502,7 @@ function processReport( reportAttributesDerived?: ReportAttributesDerivedValue['reports'], policyTags?: OnyxEntry, visibleReportActionsData: VisibleReportActionsDerivedValue = {}, + isTrackIntentUser?: boolean, ): { reportMapEntry?: [number, Report]; // The entry to add to reportMapForAccountIDs if applicable reportOption: SearchOption | null; // The report option to add to allReportOptions if applicable @@ -1515,7 +1526,7 @@ function processReport( reportMapEntry, reportOption: { item: report, - ...createOption({accountIDs, personalDetails, report, privateIsArchived, policy, reportAttributesDerived, policyTags, visibleReportActionsData}), + ...createOption({accountIDs, personalDetails, report, privateIsArchived, policy, reportAttributesDerived, policyTags, visibleReportActionsData, isTrackIntentUser}), }, }; } @@ -1528,6 +1539,7 @@ function createOptionList( reportAttributesDerived?: ReportAttributesDerivedValue['reports'], policyTags?: OnyxCollection, visibleReportActionsData: VisibleReportActionsDerivedValue = {}, + isTrackIntentUser?: boolean, ) { const span = Sentry.startInactiveSpan({name: 'createOptionList'}); @@ -1539,7 +1551,16 @@ function createOptionList( const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID}`]; const policy = policiesCollection?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; - const {reportMapEntry, reportOption} = processReport(report, personalDetails, privateIsArchived, policy, reportAttributesDerived, reportPolicyTags, visibleReportActionsData); + const {reportMapEntry, reportOption} = processReport( + report, + personalDetails, + privateIsArchived, + policy, + reportAttributesDerived, + reportPolicyTags, + visibleReportActionsData, + isTrackIntentUser, + ); if (reportMapEntry) { const [accountID, reportValue] = reportMapEntry; @@ -1627,6 +1648,7 @@ function createFilteredOptionList( } = {}, policyTags?: OnyxCollection, visibleReportActionsData: VisibleReportActionsDerivedValue = {}, + isTrackIntentUser?: boolean, ) { const {maxRecentReports = 500, includeP2P = true, isSearching = false} = options; const reportMapForAccountIDs: Record = {}; @@ -1673,7 +1695,16 @@ function createFilteredOptionList( const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report.reportID}`]; const policy = policiesCollection?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; - const {reportMapEntry, reportOption} = processReport(report, personalDetails, privateIsArchived, policy, reportAttributesDerived, reportPolicyTags, visibleReportActionsData); + const {reportMapEntry, reportOption} = processReport( + report, + personalDetails, + privateIsArchived, + policy, + reportAttributesDerived, + reportPolicyTags, + visibleReportActionsData, + isTrackIntentUser, + ); if (reportMapEntry) { const [accountID, reportValue] = reportMapEntry; @@ -2266,6 +2297,7 @@ function prepareReportOptionsForDisplay( visibleReportActionsData: VisibleReportActionsDerivedValue = {}, reportAttributesDerived?: ReportAttributesDerivedValue['reports'], policyTags?: OnyxCollection, + isTrackIntentUser?: boolean, ): Array> { const { showChatPreviewLine = false, @@ -2310,6 +2342,7 @@ function prepareReportOptionsForDisplay( policyTags: reportPolicyTags, conciergeReportID, sortedActions, + isTrackIntentUser, }, ); const isSelected = isReportSelected(option, selectedOptions); @@ -2417,6 +2450,7 @@ function getValidOptions( visibleReportActionsData = {}, reportAttributesDerived, sortedActions, + isTrackIntentUser, ...config }: GetOptionsConfig = {}, ): OptionsResult { @@ -2553,6 +2587,7 @@ function getValidOptions( visibleReportActionsData, reportAttributesDerived, allPolicyTags, + isTrackIntentUser, ).at(0); } @@ -2577,6 +2612,7 @@ function getValidOptions( visibleReportActionsData, reportAttributesDerived, allPolicyTags, + isTrackIntentUser, ); workspaceChats = prepareReportOptionsForDisplay( @@ -2597,6 +2633,7 @@ function getValidOptions( visibleReportActionsData, reportAttributesDerived, allPolicyTags, + isTrackIntentUser, ); if (reportIDsToExclude.size > 0) { @@ -2741,6 +2778,7 @@ type SearchOptionsConfig = { sortedActions: Record | undefined; conciergeReportID: string | undefined; excludeFromSuggestionsOnly?: Record; + isTrackIntentUser?: boolean; }; /** @@ -2771,6 +2809,7 @@ function getSearchOptions({ sortedActions, conciergeReportID, excludeFromSuggestionsOnly = {}, + isTrackIntentUser, }: SearchOptionsConfig): OptionsResult { const optionList = getValidOptions(options, policyCollection, draftComments, loginList, currentUserAccountID, currentUserEmail, conciergeReportID, { betas, @@ -2799,6 +2838,7 @@ function getSearchOptions({ allPolicyTags, sortedActions, excludeFromSuggestionsOnly, + isTrackIntentUser, }); return optionList; diff --git a/src/libs/OptionsListUtils/types.ts b/src/libs/OptionsListUtils/types.ts index 28e0c4609847..27fea27e3727 100644 --- a/src/libs/OptionsListUtils/types.ts +++ b/src/libs/OptionsListUtils/types.ts @@ -214,6 +214,7 @@ type GetOptionsConfig = { visibleReportActionsData?: VisibleReportActionsDerivedValue; reportAttributesDerived?: ReportAttributesDerivedValue['reports']; sortedActions?: Record; + isTrackIntentUser?: boolean; } & GetValidReportsConfig; type GetUserToInviteConfig = { diff --git a/src/pages/iou/request/step/IOURequestEditReport.tsx b/src/pages/iou/request/step/IOURequestEditReport.tsx index 9221b90922c9..62d1c97f59b0 100644 --- a/src/pages/iou/request/step/IOURequestEditReport.tsx +++ b/src/pages/iou/request/step/IOURequestEditReport.tsx @@ -136,6 +136,7 @@ function IOURequestEditReport({route}: IOURequestEditReportProps) { { value: optimisticReport.reportID, keyForList: optimisticReport.reportID, + policyID: policyForNewReport?.id, }, optimisticReport, ); diff --git a/src/pages/iou/request/step/IOURequestStepReport.tsx b/src/pages/iou/request/step/IOURequestStepReport.tsx index 47ac78f92bc0..5b68a0dfe733 100644 --- a/src/pages/iou/request/step/IOURequestStepReport.tsx +++ b/src/pages/iou/request/step/IOURequestStepReport.tsx @@ -146,7 +146,7 @@ function IOURequestStepReport({route, transaction}: IOURequestStepReportProps) { const policyForNewReport = isPerDiemTransaction && perDiemOriginalPolicy ? perDiemOriginalPolicy : policyForMovingExpenses; const optimisticReport = createNewReport(ownerPersonalDetails, hasViolations, isASAPSubmitBetaEnabled, policyForNewReport, betas, false, shouldDismissEmptyReportsConfirmation); - handleRegularReportSelection({value: optimisticReport.reportID, keyForList: optimisticReport.reportID}, optimisticReport); + handleRegularReportSelection({value: optimisticReport.reportID, keyForList: optimisticReport.reportID, policyID: policyForNewReport?.id}, optimisticReport); }; const {handleCreateReport} = useConditionalCreateEmptyReportConfirmation({ From ec63e2afaf568f81ae536aeafa982042be614586 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 21:51:25 +0530 Subject: [PATCH 02/15] removed static values --- src/libs/OptionsListUtils/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 8d010d7136f5..24eace8362c5 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -1279,7 +1279,6 @@ function getReportOption( policyTags: reportPolicyTags, visibleReportActionsData, conciergeReportID, - isTrackIntentUser: true, }); // Update text & alternateText because createOption returns workspace name only if report is owned by the user @@ -1337,7 +1336,6 @@ function getReportDisplayOption( reportAttributesDerived, policyTags, visibleReportActionsData, - isTrackIntentUser: true, }); // Update text & alternateText because createOption returns workspace name only if report is owned by the user @@ -1390,7 +1388,6 @@ function getPolicyExpenseReportOption( reportAttributesDerived, policyTags, visibleReportActionsData, - isTrackIntentUser: true, }); // Update text & alternateText because createOption returns workspace name only if report is owned by the user From b58b9c24acadb153cfdc362c0c8fa92b0cf1baa2 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 21:55:57 +0530 Subject: [PATCH 03/15] added isTrackIntentUser to dependency --- src/hooks/useFilteredOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useFilteredOptions.ts b/src/hooks/useFilteredOptions.ts index dd32ce9fab22..d7c5411936a0 100644 --- a/src/hooks/useFilteredOptions.ts +++ b/src/hooks/useFilteredOptions.ts @@ -102,7 +102,7 @@ function useFilteredOptions(config: UseFilteredOptionsConfig = {}): UseFilteredO isTrackIntentUser, ) : null, - [enabled, allReports, allPersonalDetails, reportAttributesDerived, privateIsArchivedMap, allPolicies, reportsLimit, includeP2P, isSearching, betas], + [enabled, allReports, allPersonalDetails, reportAttributesDerived, privateIsArchivedMap, allPolicies, reportsLimit, includeP2P, isSearching, betas, isTrackIntentUser], ); // When isSearching is set to true, the createFilteredOptionList returns all reports From 065ecfd4694c41eef2c9c619e4ecf6a1b1679e3e Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 21:59:18 +0530 Subject: [PATCH 04/15] added isTrackIntentUserCheck to SearchAutocompleteList --- src/components/Search/SearchAutocompleteList.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Search/SearchAutocompleteList.tsx b/src/components/Search/SearchAutocompleteList.tsx index 634925cab1f1..7128652c5357 100644 --- a/src/components/Search/SearchAutocompleteList.tsx +++ b/src/components/Search/SearchAutocompleteList.tsx @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import type {ForwardedRef, RefObject} from 'react'; import React, {useEffect, useMemo, useRef, useState} from 'react'; import type {OnyxCollection} from 'react-native-onyx'; @@ -176,6 +177,7 @@ function SearchAutocompleteList({ const currentUserAccountID = currentUserPersonalDetails.accountID; const expensifyIcons = useMemoizedLazyExpensifyIcons(['History', 'MagnifyingGlass']); const taxRates = useMemo(() => getAllTaxRates(policies), [policies]); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const {options: listOptions, isLoading: isLoadingOptions} = useFilteredOptions({enabled: true, isSearching: !!autocompleteQueryValue.trim(), betas: betas ?? []}); @@ -225,6 +227,7 @@ function SearchAutocompleteList({ personalDetails, sortedActions, conciergeReportID, + isTrackIntentUser, }).options; }, [ listOptions, From 2b18bd1c468d70d106c87679544194909a1b0d68 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 22:06:03 +0530 Subject: [PATCH 05/15] added isTrackIntentUser to dependency --- src/components/OptionListContextProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OptionListContextProvider.tsx b/src/components/OptionListContextProvider.tsx index 2199b4adfe80..ec4915683897 100644 --- a/src/components/OptionListContextProvider.tsx +++ b/src/components/OptionListContextProvider.tsx @@ -92,7 +92,7 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) { reports: optionLists.reports, personalDetails: optionLists.personalDetails, }); - }, [personalDetails, privateIsArchivedMap, reports, allPolicies, reportAttributes?.reports]); + }, [personalDetails, privateIsArchivedMap, reports, allPolicies, reportAttributes?.reports, isTrackIntentUser]); /** * This effect is responsible for generating the options list when their data is not yet initialized From 5c2d3fdf57d3212dc82fe93b06f8c484c8854c0d Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 22:10:23 +0530 Subject: [PATCH 06/15] added isTrackIntentUser to dependency --- src/components/Search/SearchAutocompleteList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Search/SearchAutocompleteList.tsx b/src/components/Search/SearchAutocompleteList.tsx index 7128652c5357..270127671392 100644 --- a/src/components/Search/SearchAutocompleteList.tsx +++ b/src/components/Search/SearchAutocompleteList.tsx @@ -243,6 +243,7 @@ function SearchAutocompleteList({ personalDetails, sortedActions, conciergeReportID, + isTrackIntentUser, ]); const [isInitialRender, setIsInitialRender] = useState(true); From 364d364cf92b73f383089dd3b7d691f6ac1265e4 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 22:39:33 +0530 Subject: [PATCH 07/15] added isTrackIntentUser check to InSelector, ShareTab, useAutocompleteSuggestions and useSearchSelector/base --- src/components/Search/FilterComponents/InSelector.tsx | 5 ++++- src/hooks/useAutocompleteSuggestions.ts | 4 ++++ src/hooks/useSearchSelector/base.ts | 6 ++++++ src/pages/Share/ShareTab.tsx | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/Search/FilterComponents/InSelector.tsx b/src/components/Search/FilterComponents/InSelector.tsx index 8f397bf5b65e..a167d0431c3f 100644 --- a/src/components/Search/FilterComponents/InSelector.tsx +++ b/src/components/Search/FilterComponents/InSelector.tsx @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import React, {useEffect} from 'react'; import {usePersonalDetails} from '@components/OnyxListItemProvider'; import type {SearchFilterCommonProps} from '@components/Search/types'; @@ -68,6 +69,7 @@ function InSelector({value = [], selectionListTextInputStyle, selectionListStyle const privateIsArchivedMap = usePrivateIsArchivedMap(); const [policyTags] = useOnyx(ONYXKEYS.COLLECTION.POLICY_TAGS, {selector: passthroughPolicyTagListSelector}); const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const selectedOptions: OptionData[] = value.map((id) => { const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${id}`]; @@ -77,7 +79,7 @@ function InSelector({value = [], selectionListTextInputStyle, selectionListStyle const isReportArchived = !!privateIsArchived; const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; - const alternateText = getAlternateText(report, {}, {isReportArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID}); + const alternateText = getAlternateText(report, {}, {isReportArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID, isTrackIntentUser}); return {...report, alternateText}; }); @@ -97,6 +99,7 @@ function InSelector({value = [], selectionListTextInputStyle, selectionListStyle policyCollection: allPolicies, sortedActions, conciergeReportID, + isTrackIntentUser, }).options; const chatOptions = filterAndOrderOptions(defaultOptions, cleanSearchTerm, countryCode, loginList, currentUserEmail, currentUserAccountID, personalDetails, { diff --git a/src/hooks/useAutocompleteSuggestions.ts b/src/hooks/useAutocompleteSuggestions.ts index 3a325a799309..238af9c02190 100644 --- a/src/hooks/useAutocompleteSuggestions.ts +++ b/src/hooks/useAutocompleteSuggestions.ts @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import passthroughPolicyTagListSelector from '@selectors/PolicyTagList'; import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; import type {LocaleContextProps} from '@components/LocaleContextProvider'; @@ -113,6 +114,7 @@ function useAutocompleteSuggestions({ const sortedActions = useSortedActions(); const {currencyList} = useCurrencyListState(); const {exportedToFilterOptions} = useExportedToFilterOptions(); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const parsedQuery = parseForAutocomplete(autocompleteQueryValue); const {autocomplete, ranges = []} = parsedQuery ?? {}; @@ -244,6 +246,7 @@ function useAutocompleteSuggestions({ sortedActions, conciergeReportID, excludeFromSuggestionsOnly: memberExclusions, + isTrackIntentUser, }).options.personalDetails.filter((participant) => participant.text && !alreadyAutocompletedKeys.has(participant.text.toLowerCase())); return participants.map((participant) => ({ @@ -281,6 +284,7 @@ function useAutocompleteSuggestions({ personalDetails, sortedActions, conciergeReportID, + isTrackIntentUser, }).options.recentReports.filter((chat) => { if (!chat.text) { return false; diff --git a/src/hooks/useSearchSelector/base.ts b/src/hooks/useSearchSelector/base.ts index 54e45d56660e..3ec5032394ef 100644 --- a/src/hooks/useSearchSelector/base.ts +++ b/src/hooks/useSearchSelector/base.ts @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import passthroughPolicyTagListSelector from '@selectors/PolicyTagList'; import {useState} from 'react'; import type {PermissionStatus} from 'react-native-permissions'; @@ -211,6 +212,7 @@ function useSearchSelectorBase({ const personalDetails = usePersonalDetails(); const [allPolicyTags] = useOnyx(ONYXKEYS.COLLECTION.POLICY_TAGS, {selector: passthroughPolicyTagListSelector}); const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const computedSearchTerm = getSearchValueForPhoneOrEmail(debouncedSearchTerm, countryCode); const trimmedSearchInput = debouncedSearchTerm.trim(); @@ -240,6 +242,7 @@ function useSearchSelectorBase({ personalDetails, sortedActions, conciergeReportID, + isTrackIntentUser, }); case CONST.SEARCH_SELECTOR.SEARCH_CONTEXT_GENERAL: return getValidOptions(optionsWithContacts, allPolicies, draftComments, loginList, currentUserAccountID, currentUserEmail, conciergeReportID, { @@ -262,6 +265,7 @@ function useSearchSelectorBase({ reportAttributesDerived: reportAttributesDerived?.reports, allPolicyTags, sortedActions, + isTrackIntentUser, ...getValidOptionsConfig, }); case CONST.SEARCH_SELECTOR.SEARCH_CONTEXT_SHARE_DESTINATION: @@ -287,6 +291,7 @@ function useSearchSelectorBase({ reportAttributesDerived: reportAttributesDerived?.reports, allPolicyTags, sortedActions, + isTrackIntentUser, }); case CONST.SEARCH_SELECTOR.SEARCH_CONTEXT_ATTENDEES: return getValidOptions(optionsWithContacts, allPolicies, draftComments, loginList, currentUserAccountID, currentUserEmail, conciergeReportID, { @@ -309,6 +314,7 @@ function useSearchSelectorBase({ reportAttributesDerived: reportAttributesDerived?.reports, allPolicyTags, sortedActions, + isTrackIntentUser, ...getValidOptionsConfig, }); default: diff --git a/src/pages/Share/ShareTab.tsx b/src/pages/Share/ShareTab.tsx index 8c618f70142c..2b22d6862bd6 100644 --- a/src/pages/Share/ShareTab.tsx +++ b/src/pages/Share/ShareTab.tsx @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import React, {useEffect, useState} from 'react'; import {View} from 'react-native'; import {usePersonalDetails} from '@components/OnyxListItemProvider'; @@ -50,6 +51,7 @@ function ShareTab() { const currentUserAccountID = currentUserPersonalDetails.accountID; const currentUserEmail = currentUserPersonalDetails.email ?? ''; const personalDetails = usePersonalDetails(); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const {didScreenTransitionEnd} = useScreenWrapperTransitionStatus(); const {options: listOptions, isLoading} = useFilteredOptions({ @@ -82,6 +84,7 @@ function ShareTab() { personalDetails, sortedActions, conciergeReportID, + isTrackIntentUser, }).options : defaultListOptions; From c29cba7766eed12d49a4459e3f799b9fc11ec464 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 23:07:11 +0530 Subject: [PATCH 08/15] added isTrackIntentUser to OptionListContextProvider's createOptionFromReport --- src/components/OptionListContextProvider.tsx | 17 ++++++++++++++--- src/libs/OptionsListUtils/index.ts | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/components/OptionListContextProvider.tsx b/src/components/OptionListContextProvider.tsx index ec4915683897..929ccfb9b6c7 100644 --- a/src/components/OptionListContextProvider.tsx +++ b/src/components/OptionListContextProvider.tsx @@ -313,9 +313,20 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) { const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report.reportID}`]; const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report.policyID}`]; - const newReportOption = createOptionFromReport(report, personalDetails, privateIsArchived, policy, sortedActions, reportAttributes?.reports, { - showPersonalDetails: true, - }); + const newReportOption = createOptionFromReport( + report, + personalDetails, + privateIsArchived, + policy, + sortedActions, + reportAttributes?.reports, + { + showPersonalDetails: true, + }, + undefined, + undefined, + isTrackIntentUser, + ); const replaceIndex = options.reports.findIndex((option) => option.reportID === report.reportID); newReportOptions.push({ newReportOption, diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 24eace8362c5..a104cafe50fe 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -1765,12 +1765,25 @@ function createOptionFromReport( config?: PreviewConfig, policyTags?: OnyxEntry, visibleReportActionsData: VisibleReportActionsDerivedValue = {}, + isTrackIntentUser?: boolean, ) { const accountIDs = getParticipantsAccountIDsForDisplay(report); return { item: report, - ...createOption({accountIDs, personalDetails, report, privateIsArchived, policy, config, reportAttributesDerived, policyTags, visibleReportActionsData, sortedActions}), + ...createOption({ + accountIDs, + personalDetails, + report, + privateIsArchived, + policy, + config, + reportAttributesDerived, + policyTags, + visibleReportActionsData, + sortedActions, + isTrackIntentUser, + }), }; } From 29253d98b10443e4d887fdc13a3622f55ba9a7e4 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 23:16:35 +0530 Subject: [PATCH 09/15] fixed test case for OptionListContextProviderTest --- tests/unit/OptionListContextProviderTest.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/OptionListContextProviderTest.tsx b/tests/unit/OptionListContextProviderTest.tsx index 3bcedc01d4b5..531acc5b0175 100644 --- a/tests/unit/OptionListContextProviderTest.tsx +++ b/tests/unit/OptionListContextProviderTest.tsx @@ -294,7 +294,7 @@ describe('OptionListContextProvider', () => { mockUsePersonalDetails.mockReturnValue(updatedPersonalDetails); rerender({shouldInitialize: false}); - expect(mockCreateOptionFromReport).toHaveBeenCalledWith(report, updatedPersonalDetails, true, undefined, undefined, undefined, {showPersonalDetails: true}); + expect(mockCreateOptionFromReport).toHaveBeenCalledWith(report, updatedPersonalDetails, true, undefined, undefined, undefined, {showPersonalDetails: true}, undefined, undefined, undefined); }); it('does not reset options when called before initialization', () => { From f2043ebc06b48ff3b907eb203422c7de4f4a8d3d Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Fri, 12 Jun 2026 23:23:46 +0530 Subject: [PATCH 10/15] code prettified --- tests/unit/OptionListContextProviderTest.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/unit/OptionListContextProviderTest.tsx b/tests/unit/OptionListContextProviderTest.tsx index 531acc5b0175..0f97bc4faa60 100644 --- a/tests/unit/OptionListContextProviderTest.tsx +++ b/tests/unit/OptionListContextProviderTest.tsx @@ -294,7 +294,18 @@ describe('OptionListContextProvider', () => { mockUsePersonalDetails.mockReturnValue(updatedPersonalDetails); rerender({shouldInitialize: false}); - expect(mockCreateOptionFromReport).toHaveBeenCalledWith(report, updatedPersonalDetails, true, undefined, undefined, undefined, {showPersonalDetails: true}, undefined, undefined, undefined); + expect(mockCreateOptionFromReport).toHaveBeenCalledWith( + report, + updatedPersonalDetails, + true, + undefined, + undefined, + undefined, + {showPersonalDetails: true}, + undefined, + undefined, + undefined, + ); }); it('does not reset options when called before initialization', () => { From 6efd7382e99c78017eec96259de5d418638285c6 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Sat, 13 Jun 2026 00:01:28 +0530 Subject: [PATCH 11/15] added isTrackIntentUser to createOptionFromReport --- .../Search/FilterComponents/InSelector.tsx | 15 ++++++++++++++- .../Search/SearchFiltersChatsSelector.tsx | 15 ++++++++++++++- .../Search/SearchRouter/SearchRouter.tsx | 19 ++++++++++++++++--- 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/components/Search/FilterComponents/InSelector.tsx b/src/components/Search/FilterComponents/InSelector.tsx index a167d0431c3f..24083a01e936 100644 --- a/src/components/Search/FilterComponents/InSelector.tsx +++ b/src/components/Search/FilterComponents/InSelector.tsx @@ -75,7 +75,20 @@ function InSelector({value = [], selectionListTextInputStyle, selectionListStyle const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${id}`]; const reportData = reports?.[`${ONYXKEYS.COLLECTION.REPORT}${id}`]; const reportPolicy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; - const report = getSelectedOptionData(createOptionFromReport({...reportData, reportID: id}, personalDetails, privateIsArchived, reportPolicy, sortedActions, reportAttributesDerived)); + const report = getSelectedOptionData( + createOptionFromReport( + {...reportData, reportID: id}, + personalDetails, + privateIsArchived, + reportPolicy, + sortedActions, + reportAttributesDerived, + undefined, + undefined, + undefined, + isTrackIntentUser, + ), + ); const isReportArchived = !!privateIsArchived; const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; diff --git a/src/components/Search/SearchFiltersChatsSelector.tsx b/src/components/Search/SearchFiltersChatsSelector.tsx index e6c1c636503c..ca01686d0bc3 100644 --- a/src/components/Search/SearchFiltersChatsSelector.tsx +++ b/src/components/Search/SearchFiltersChatsSelector.tsx @@ -80,7 +80,20 @@ function SearchFiltersChatsSelector({initialReportIDs, onFiltersUpdate, isScreen const privateIsArchived = privateIsArchivedMap[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${id}`]; const reportData = reports?.[`${ONYXKEYS.COLLECTION.REPORT}${id}`]; const reportPolicy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; - const report = getSelectedOptionData(createOptionFromReport({...reportData, reportID: id}, personalDetails, privateIsArchived, reportPolicy, sortedActions, reportAttributesDerived)); + const report = getSelectedOptionData( + createOptionFromReport( + {...reportData, reportID: id}, + personalDetails, + privateIsArchived, + reportPolicy, + sortedActions, + reportAttributesDerived, + undefined, + undefined, + undefined, + isTrackIntentUser, + ), + ); const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; const alternateText = getAlternateText(report, {}, {isReportArchived: privateIsArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID}); diff --git a/src/components/Search/SearchRouter/SearchRouter.tsx b/src/components/Search/SearchRouter/SearchRouter.tsx index f702a7e20a8e..6384c2591a30 100644 --- a/src/components/Search/SearchRouter/SearchRouter.tsx +++ b/src/components/Search/SearchRouter/SearchRouter.tsx @@ -1,3 +1,4 @@ +import {isTrackIntentUserSelector} from '@selectors/Onboarding'; import {hasSeenTourSelector} from '@selectors/Onboarding'; import {deepEqual} from 'fast-equals'; import React, {useCallback, useEffect, useRef, useState} from 'react'; @@ -73,6 +74,7 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED); const [betas] = useOnyx(ONYXKEYS.BETAS); const [isSelfTourViewed] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector}); + const [isTrackIntentUser] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {selector: isTrackIntentUserSelector}); const personalDetails = usePersonalDetails(); const sortedActions = useSortedActions(); const {shouldUseNarrowLayout} = useResponsiveLayout(); @@ -141,9 +143,20 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla return undefined; } - const option = createOptionFromReport(contextualReport, personalDetails, contextualReportNVP, contextualReportPolicy, sortedActions, undefined, { - showPersonalDetails: true, - }); + const option = createOptionFromReport( + contextualReport, + personalDetails, + contextualReportNVP, + contextualReportPolicy, + sortedActions, + undefined, + { + showPersonalDetails: true, + }, + undefined, + undefined, + isTrackIntentUser, + ); reportForContextualSearch = option; } From cf14657e52cb142fced8fe6db1899cd50a2eda48 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Sat, 13 Jun 2026 00:12:38 +0530 Subject: [PATCH 12/15] added isTrackIntentUser to dependency --- src/components/Search/SearchRouter/SearchRouter.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Search/SearchRouter/SearchRouter.tsx b/src/components/Search/SearchRouter/SearchRouter.tsx index 6384c2591a30..e578297d62bb 100644 --- a/src/components/Search/SearchRouter/SearchRouter.tsx +++ b/src/components/Search/SearchRouter/SearchRouter.tsx @@ -221,6 +221,7 @@ function SearchRouter({onRouterClose, shouldHideInputCaret, isSearchRouterDispla sortedActions, contextualReportNVP, contextualReportPolicy, + isTrackIntentUser, ], ); From 8140562434cb69e775d103f85b3fdc153b33519a Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Sat, 13 Jun 2026 00:37:14 +0530 Subject: [PATCH 13/15] added isTrackInterUser check to alternateText --- src/components/Search/SearchFiltersChatsSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Search/SearchFiltersChatsSelector.tsx b/src/components/Search/SearchFiltersChatsSelector.tsx index ca01686d0bc3..aacd3647add7 100644 --- a/src/components/Search/SearchFiltersChatsSelector.tsx +++ b/src/components/Search/SearchFiltersChatsSelector.tsx @@ -96,7 +96,7 @@ function SearchFiltersChatsSelector({initialReportIDs, onFiltersUpdate, isScreen ); const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; - const alternateText = getAlternateText(report, {}, {isReportArchived: privateIsArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID}); + const alternateText = getAlternateText(report, {}, {isReportArchived: privateIsArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID, isTrackIntentUser}); return {...report, alternateText}; }); From 15d91366fd4f43950750c126ecf1a9aaaf2dc0a0 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Sat, 13 Jun 2026 00:39:47 +0530 Subject: [PATCH 14/15] fix code prettier --- src/components/Search/SearchFiltersChatsSelector.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Search/SearchFiltersChatsSelector.tsx b/src/components/Search/SearchFiltersChatsSelector.tsx index aacd3647add7..2b8bd8a0fe68 100644 --- a/src/components/Search/SearchFiltersChatsSelector.tsx +++ b/src/components/Search/SearchFiltersChatsSelector.tsx @@ -96,7 +96,11 @@ function SearchFiltersChatsSelector({initialReportIDs, onFiltersUpdate, isScreen ); const policy = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportData?.policyID}`]; const reportPolicyTags = policyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(report?.policyID)}`]; - const alternateText = getAlternateText(report, {}, {isReportArchived: privateIsArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID, isTrackIntentUser}); + const alternateText = getAlternateText( + report, + {}, + {isReportArchived: privateIsArchived, policy, reportAttributesDerived, policyTags: reportPolicyTags, conciergeReportID, isTrackIntentUser}, + ); return {...report, alternateText}; }); From 1861e1f0943834d04663ab0f82fc68dc2d7d48c8 Mon Sep 17 00:00:00 2001 From: jayeshmangwani Date: Sat, 13 Jun 2026 01:25:56 +0530 Subject: [PATCH 15/15] fixed lint --- src/components/Search/SearchRouter/SearchRouter.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Search/SearchRouter/SearchRouter.tsx b/src/components/Search/SearchRouter/SearchRouter.tsx index e578297d62bb..b3b6d5db1827 100644 --- a/src/components/Search/SearchRouter/SearchRouter.tsx +++ b/src/components/Search/SearchRouter/SearchRouter.tsx @@ -1,5 +1,4 @@ -import {isTrackIntentUserSelector} from '@selectors/Onboarding'; -import {hasSeenTourSelector} from '@selectors/Onboarding'; +import {hasSeenTourSelector, isTrackIntentUserSelector} from '@selectors/Onboarding'; import {deepEqual} from 'fast-equals'; import React, {useCallback, useEffect, useRef, useState} from 'react'; import type {TextInputProps} from 'react-native';