-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate search page to chat finder page #40129
Migrate search page to chat finder page #40129
Conversation
1777e80
to
46b6a09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Left a few minor comments and asked for marketing input.
@@ -35,7 +35,8 @@ if (!appInstanceId) { | |||
// import your test here, define its name and config first in e2e/config.js | |||
const tests: Tests = { | |||
[E2EConfig.TEST_NAMES.AppStartTime]: require('./tests/appStartTimeTest.e2e').default, | |||
[E2EConfig.TEST_NAMES.OpenSearchPage]: require('./tests/openSearchPageTest.e2e').default, | |||
// ASK: Should we also update this name? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we can update this one since it's just a require``
@@ -9,7 +9,7 @@ import ROUTES from '@src/ROUTES'; | |||
|
|||
const test = () => { | |||
// check for login (if already logged in the action will simply resolve) | |||
console.debug('[E2E] Logging in for search'); | |||
console.debug('[E2E] Logging in for chat finding'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.debug('[E2E] Logging in for chat finding'); | |
console.debug('[E2E] Logging in for chat finder'); |
@@ -19,12 +19,12 @@ const test = () => { | |||
); | |||
} | |||
|
|||
console.debug('[E2E] Logged in, getting search metrics and submitting them…'); | |||
console.debug('[E2E] Logged in, getting chat finding metrics and submitting them…'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.debug('[E2E] Logged in, getting chat finding metrics and submitting them…'); | |
console.debug('[E2E] Logged in, getting chat finder metrics and submitting them…'); |
src/CONST.ts
Outdated
// ASK: Should we also update this name? | ||
CHAT_FINDER_RENDER: 'chat_finder', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it seems like we save this metric to Firebase and Grafana. So Maybe we should just rename the key, but leave the value as is.
// ASK: Should we also update this name? | |
CHAT_FINDER_RENDER: 'chat_finder', | |
CHAT_FINDER_RENDER: 'search_render', |
src/pages/ChatFinderPage/index.tsx
Outdated
// ASK: Should we also update this name? | ||
Timing.end(CONST.TIMING.CHAT_FINDER_RENDER); | ||
Performance.markEnd(CONST.TIMING.CHAT_FINDER_RENDER); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I think we should update the key, but leave the value of the key as is.
// ASK: Should we also update this name? | |
Timing.end(CONST.TIMING.CHAT_FINDER_RENDER); | |
Performance.markEnd(CONST.TIMING.CHAT_FINDER_RENDER); | |
Timing.end(CONST.TIMING.CHAT_FINDER_RENDER); | |
Performance.markEnd(CONST.TIMING.CHAT_FINDER_RENDER); |
src/pages/ChatFinderPage/index.tsx
Outdated
// ASK: Should we also update this name? | ||
Timing.start(CONST.TIMING.CHAT_FINDER_RENDER); | ||
Performance.markStart(CONST.TIMING.CHAT_FINDER_RENDER); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// ASK: Should we also update this name? | |
Timing.start(CONST.TIMING.CHAT_FINDER_RENDER); | |
Performance.markStart(CONST.TIMING.CHAT_FINDER_RENDER); | |
Timing.start(CONST.TIMING.CHAT_FINDER_RENDER); | |
Performance.markStart(CONST.TIMING.CHAT_FINDER_RENDER); |
onEntryTransitionEnd={handleScreenTransitionEnd} | ||
shouldEnableMaxHeight | ||
navigation={navigation} | ||
> | ||
<HeaderWithBackButton | ||
// ASK: What text do we want to use for the title? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we resolve that, I'll record videos for this PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luacmartins can you actually bring this question out into #marketing? This seems like a slightly larger change that we should discuss and align on first in Slack. Thanks!
tests/e2e/config.ts
Outdated
// ASK: Should we also update this name? | ||
OpenChatFinderPage: 'Open chat finder page TTI', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, we should. I don't think this value is being saved anywhere (at least I couldn't find that in code)
@alitoshmatov Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I won't block on the copy for the search page title as that's an easy thing to update as a follow up.
@alitoshmatov could you start the review on this one please? |
There is an issue when typing, typing stops and input is losing focus unexpectedly. Screen.Recording.2024-04-17.at.12.28.32.AM.mov |
This issue isn't caused by this PR, it also occurs on the main branch. The PR with a fix for that issue is currently in review :) |
Reviewer Checklist
Screenshots/VideosAndroid: Nativehttps://github.com/Expensify/App/assets/59907218/e36d18f4-8478-4898-81b7-0157e728d8f7Android: mWeb ChromeiOS: Nativefind-ios.mp4iOS: mWeb Safarifind-safari.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Gonna merge this one to get things going with the Search page. I'll bump marketing on the new title for the Finder page. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.63-0 🚀
|
It looks like the e2e performance tests have been consistently failing since this PR was merged. See failed e2e test here for this PR that happened once this change hit main. I found this out by looking at the list of builds for |
@adamgrzybowski @WojtekBoman could you take a look? |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
This PR request renames the current search page to ChatFinder.
Fixed Issues
$ #39885
PROPOSAL:
Tests
Offline tests
QA Steps
First test
/chat-finder
and see if the right page is openedSecond test
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov