-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] [Manager McTest] Update our exisitingEducationalTooltip component to display the new buttons (Try it out/No thanks) #56239
Conversation
@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] |
@@ -6251,6 +6251,8 @@ const translations = { | |||
part6: 'Ahora,', | |||
part7: ' envía tu gasto y', | |||
part8: ' ¡observa cómo ocurre la magia!', | |||
tryItOut: 'Prueba esto', |
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.
@JKobrynski Did we confirm this translation?
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.
I asked for a confirmation here but got no replies, I used JaimeGPT to translate it
@@ -129,6 +130,7 @@ const TOOLTIPS: Record<ProductTrainingTooltipName, TooltipData> = { | |||
name: SCAN_TEST_TOOLTIP, | |||
priority: 900, | |||
shouldShow: () => false, | |||
shouldRenderActionButtons: true, |
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.
@JKobrynski I think we need to add shouldRenderActionButtons to WORKSAPCE_CHAT_CREATE tooltip instead of this place
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.
I can change that if you want, but the purpose of this PR is just to allow us to display the action buttons, the actual logic for the new tooltip flow will be introduced later! Wdyt? Should we make that change?
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.
@JKobrynski But currently it doesn't match your test step
- Make sure you can see the tooltip next to composer (if not, make sure you check Prerequisites above)
- Check if you can also see the new buttons (Try it out and No thanks)
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.
If I change this, all users that sign up to a new account will see these buttons that will do nothing because the functionality is not implemented yet. In the ** Prerequisites** section I instructed reviewers to enable this for WORKSAPCE_CHAT_CREATE
so they can see it on their own machine and verify if it looks right. We don't want to permanently change it, it's just for testing purposes.
Reviewer Checklist
Screenshots/Videos |
…07-update-educational-tooltip
@mountiny do you think we could merge this? |
Taking a look at this! |
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.
Code LGTM, should we do a design review on screenshots now, or wait until we go live?
})} | ||
</Text> | ||
<View> | ||
<View style={[styles.alignItemsCenter, styles.flexRow, styles.justifyContentCenter, styles.flexWrap, styles.textAlignCenter, styles.gap3, styles.p2]}> |
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.
Let's get a design review before we merge this- I'm thinking we can just use screenshots since we can't adhoc build this rn?
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.
I take it back, let's wait on the adhoc when we go live instead so we don't need duplicate reviews
✋ 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/grgia in version: 9.0.97-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.97-1 🚀
|
Explanation of Change
Added an optional
shouldRenderActionButtons
param to tooltips as well as the UI logic that displays the new buttons.Fixed Issues
$ #55007
PROPOSAL: N/A
Tests
Prerequisites
As of now there are no tooltips that display these new buttons, and this PR's sole purpose is to introduce the logic to display them, not to add the new tooltips. So, in order to see the buttons in the app, you have to modify the code slightly:
ReportActionCompose.tsx
This code will render the WORKSPACE_CHAT_CREATE tooltip even if you are not on a fresh account
TOOLTIPS.ts
[WORKSAPCE_CHAT_CREATE]: { content: [ {text: 'productTrainingTooltip.workspaceChatCreate.part1', isBold: false}, {text: 'productTrainingTooltip.workspaceChatCreate.part2', isBold: true}, {text: 'productTrainingTooltip.workspaceChatCreate.part3', isBold: false}, ], onHideTooltip: () => dismissProductTraining(WORKSAPCE_CHAT_CREATE), name: WORKSAPCE_CHAT_CREATE, priority: 1100, shouldShow: () => true, + shouldRenderActionButtons: true, },
This code will render the new buttons in the WORKSPACE_CHAT_CREATE tooltip
Try it out
andNo thanks
)Offline tests
N/A
QA Steps
This is a No QA issue as it requires code modifications.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
MacOS: Desktop