diff --git a/src/CONST.ts b/src/CONST.ts index eba68999cc39..9e1a0ba5d22c 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -3301,6 +3301,13 @@ const CONST = { SCAN: 'scan', DISTANCE: 'distance', }, + TAB_SEARCH: { + ALL: 'all', + SENT: 'sent', + DRAFTS: 'drafts', + WAITING_ON_YOU: 'waitingOnYou', + FINISHED: 'finished', + }, STATUS_TEXT_MAX_LENGTH: 100, DROPDOWN_BUTTON_SIZE: { diff --git a/src/ROUTES.ts b/src/ROUTES.ts index 59d2cd797f73..a9978c49767c 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -22,6 +22,11 @@ const ROUTES = { ALL_SETTINGS: 'all-settings', + SEARCH: { + route: '/search/:query', + getRoute: (query: string) => `search/${query}` as const, + }, + // This is a utility route used to go to the user's concierge chat, or the sign-in page if the user's not authenticated CONCIERGE: 'concierge', FLAG_COMMENT: { diff --git a/src/SCREENS.ts b/src/SCREENS.ts index 5ff8b272e56f..a816103f2f80 100644 --- a/src/SCREENS.ts +++ b/src/SCREENS.ts @@ -23,6 +23,10 @@ const SCREENS = { UNLINK_LOGIN: 'UnlinkLogin', SETTINGS_CENTRAL_PANE: 'SettingsCentralPane', WORKSPACES_CENTRAL_PANE: 'WorkspacesCentralPane', + SEARCH: { + CENTRAL_PANE: 'Search_Central_Pane', + BOTTOM_TAB: 'Search_Bottom_Tab', + }, SETTINGS: { ROOT: 'Settings_Root', SHARE_CODE: 'Settings_Share_Code', diff --git a/src/components/TestToolMenu.tsx b/src/components/TestToolMenu.tsx index 5efa9592034f..6827dee44141 100644 --- a/src/components/TestToolMenu.tsx +++ b/src/components/TestToolMenu.tsx @@ -10,6 +10,7 @@ import * as Network from '@userActions/Network'; import * as Session from '@userActions/Session'; import * as User from '@userActions/User'; import CONFIG from '@src/CONFIG'; +import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; import type {Network as NetworkOnyx, User as UserOnyx} from '@src/types/onyx'; @@ -103,6 +104,16 @@ function TestToolMenu({user = USER_DEFAULT, network}: TestToolMenuProps) { }} /> + {/* Navigate to the new Search Page. This button is temporary and should be removed after passing QA tests. */} + +