Add manager mctest tooltips to create expense flow#56759
Conversation
…to add-manager-mctest-tooltips-to-create-expense-flow
…to add-manager-mctest-tooltips-to-create-expense-flow
JKobrynski
left a comment
There was a problem hiding this comment.
One minor comment, other than that, LGTM
…to add-manager-mctest-tooltips-to-create-expense-flow
…to add-manager-mctest-tooltips-to-create-expense-flow
|
@DylanDylann 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] |
…to add-manager-mctest-tooltips-to-create-expense-flow
| return report.isUnread === true && notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.MUTE && !isHiddenForCurrentUser(notificationPreference); | ||
| } | ||
|
|
||
| function isSelectedManagerMcTest(email: string | null | undefined): boolean { |
There was a problem hiding this comment.
Could you add description for function?
There was a problem hiding this comment.
Also, why null? Is that really a possibility?
There was a problem hiding this comment.
| }); | ||
| } else { | ||
| Navigation.navigate(route); | ||
| Navigation.navigate(route, {forceReplace: true}); |
There was a problem hiding this comment.
Why do you change this line?
There are some cases where the flow is: Entering amount > Selecting participant > Confirmation Page
There was a problem hiding this comment.
This is added because after recent changes with navigation when we are coming back to page which we already displayed in the html there are 2 of those screens and becasuse of that tooltip is displayed twice
test.mp4
| )} | ||
|
|
||
| {button} | ||
| <EducationalTooltip |
There was a problem hiding this comment.
NAB: But let's add a condition for more safe
shouldShowProductTrainingTooltip && (<EducationalTooltip....)
There was a problem hiding this comment.
I am not sure if this is needed its already handled by shouldShowProductTrainingTooltip so if we add this condition we would basically made the same condition which we are passing to useProductTrainingContext
| item.alternateText ? styles.mb1 : null, | ||
| ]} | ||
| /> | ||
| <EducationalTooltip |
There was a problem hiding this comment.
NAB: Becasue InviteMemberListItem is used in many places, for more safe, Let's add a condition to make sure that the education tooltips only display on create expense flow
…to add-manager-mctest-tooltips-to-create-expense-flow
|
@kubabutkiewicz Conflict again |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-18.at.14.50.45.movAndroid: mWeb ChromeScreen.Recording.2025-02-18.at.14.52.55.moviOS: NativeScreen.Recording.2025-02-18.at.14.49.27.moviOS: mWeb SafariScreen.Recording.2025-02-18.at.14.51.42.movMacOS: Chrome / SafariScreen.Recording.2025-02-18.at.14.52.13.movMacOS: DesktopScreen.Recording.2025-02-18.at.14.49.49.mov |
|
@kubabutkiewicz Please help to fix conflict |
Should we have design do QA on this PR @kubabutkiewicz ? I think there's slightly too much space between the button and tooltip |
|
@grgia I see It already matched with the design on document
|
DylanDylann
left a comment
There was a problem hiding this comment.
Approved again to re-trigger GH actions
|
Hey, I will have soon PR with BE integration when I had to change a place in the code from where we are displaying this tooltip, so maybe we can do those adjustments there ? Here is a draft PR #57171 |
|
@grgia Kindly bump |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@chiragsalian @kubabutkiewicz @grgia
Are the applause.expensifail.com domain account is added to beta to verify this PR? |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.1.5-0 🚀
|
Let's check, the beta name is Looks like the domain +@applause.expensifail.com has this beta added already for the domain. |
|
FYI folks, it looks like this PR has caused a couple of blockers, #57351 being one of them. Unsure how we wanted to proceed as I believe this is under beta? |
|
@yuwenmemon Yes its under the beta, and both of this issues says about not implemented things yet, so I think they can be closed. |
|
Heads up, i reverted this PR as it was a blocker for deploy from this issue - #57381 |
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.5-5 🚀
|
|
@kubabutkiewicz The PR was reverted |
|
Yeah, I am working on it right now to bring it back @DylanDylann |





Explanation of Change
Fixed Issues
$ #55008
$ #55009
PROPOSAL:
Tests
Make sure you are added to beta for testing manager mctest
And you are on account that didn't send any expenses or dont have in Onyx
scanTestTooltipvalue inNVP_DISMISSED_PRODUCT_TRAININGkeyOpen FAB
Select Create Expense
When on Scan tab verify that tooltip for trying out testing receipt is visible
Add some file and go to next step
Go to select participant page
Verify that Manager McTest is visible and tooltip for selecting it for testing is visible
Select Manager McTest
On confirmation page verify that the tooltip above confirm button is visible
Open FAB
Select Create Expense
Select Manual
Add some amount
Go to select participant page
Verify that Manager McTest is visible and tooltip for selecting it for testing is visible
Select Manager McTest
On confirmation page verify that the tooltip above confirm button is visible
Open FAB
Select Create Expense
Select Distance
Add some waypoints
Go to select participant page
Verify that Manager McTest is visible and tooltip for selecting it for testing is visible
Select Manager McTest
On confirmation page verify that the tooltip above confirm button is visible
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
iOS: Native
io1.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4