-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$125] Test Drive - Not functional tooltip on test drive expense submission #62774
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
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @techievivek ( |
💬 A slack conversation has been started in #expensify-open-source |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clicking on tooltip is not functional. What is the root cause of that problem?This tooltip has no
What changes do you think we should make in order to solve the problem?We should add
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)We can display the cursor default if there is no tooltip press action. To do that we should remove the default value of Then we apply the cursor default style here if
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tooltip not functional on test drive expense submission. What is the root cause of that problem?We do not handle onTooltipPress here.
What changes do you think we should make in order to solve the problem?Import
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Hmm not sure if this one is a valid bug, just checked the Design and Manual Tests doc and there are no mentions that this tooltip should be clickable. Curious what you think @marcaaron @danielrvidal |
🚨 Edited by proposal-police: This proposal was edited at 2025-05-26 21:37:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Test Drive - Not functional tooltip on test drive expense submission What is the root cause of that problem?When we create a public acount by default
App/src/components/MoneyRequestConfirmationList.tsx Lines 1006 to 1016 in 41956a9
What changes do you think we should make in order to solve the problem?We should explicitly pass <EducationalTooltip
shouldRender={shouldShowProductTrainingTooltip}
renderTooltipContent={renderProductTrainingTooltip}
anchorAlignment={{
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.CENTER,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM,
}}
wrapperStyle={styles.productTrainingTooltipWrapper}
shouldHideOnNavigate
shiftVertical={-10}
onTooltipPress={confirm}
> What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Or we can pass onTooltipPress={(event, value) => confirm(value as PaymentMethodType)} Resulttooltip_functional.mp4Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
I think this is a wontfix and we should close it unless someone reports this internally. |
Though actually maybe the only thing we need to change is the cursor pointer on hover. I just tried it and it does seem like something that would be "clickable" which is misleading. |
Ok, cool, we can update the cusor type here then. |
Job added to Upwork: https://www.upwork.com/jobs/~021927605626835916376 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
Upwork job price has been updated to $125 |
Updated proposal
|
I think @nkdengineer alternative solution looks good if we want to just make the tooltip not clickable if no
|
|
I think we can go ahead and just close this. The current cursor type is set to pointer, which makes sense as it implies interactivity, similar to closing the tooltip via the 'x' button in the top-right corner. And if we ever introduce an onTooltipPress action in the future, having the pointer cursor will help visually indicate that the tooltip is clickable. |
@techievivek I think we should display the default pointer for the tooltip that doesn't have |
Agree with @nkdengineer. It's a small thing, but having pointers for non-interactive elements is a bad practice. |
I'm good with the update if that follows our other tooltips. I think it makes sense to make it consistent. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Test Drive - Not functional tooltip on test drive expense submission What is the root cause of that problem?We use AnimatedPressableWithoutFeedback as the pressable component for
And inside the nested component BaseGenericPressable , the interactive prop defaults to true. As a result, the BaseGenericPressable returns the cursorPointer style when interactive is true.App/src/components/Pressable/GenericPressable/implementation/BaseGenericPressable.tsx Line 39 in 09de15b
App/src/components/Pressable/GenericPressable/implementation/BaseGenericPressable.tsx Lines 71 to 82 in 09de15b
This causes the tooltip to incorrectly show a pointer cursor (cursor: pointer), even though the tooltip is not actually clickable. ![]() What changes do you think we should make in order to solve the problem?We should:
function GenericTooltip({
....
onTooltipPress,
}: GenericTooltipProps)
....
function BaseGenericTooltip({
.....
onTooltipPress,
}: BaseGenericTooltipProps) {
<AnimatedWrapper
interactive={isEducationTooltip ? !!onTooltipPress : undefined}
ref={viewRef(rootWrapper)}
style={[rootWrapperStyle, animationStyle]}
onPress={isEducationTooltip ? onTooltipPress : undefined}
role={isEducationTooltip ? CONST.ROLE.TOOLTIP : undefined}
accessibilityLabel={isEducationTooltip ? CONST.ROLE.TOOLTIP : undefined}
> This ensures the tooltip won’t show the pointer cursor when it’s not meant to be interactive. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None, UI bug What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Ok, I see. Since the prop is defined for some tooltips, it makes sense to use the default pointer cursor when the prop isn't provided. That way, we can visually distinguish between tooltips that are clickable and those that aren’t. |
@Ollyws can you review the proposals above? Thanks. |
@nkdengineer's proposal LGTM. |
Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@Ollyws Why did you choose to pass |
@linhvovan29546 Thanks for your proposal but I went with @nkdengineer's proposal because yours is in concept essentially the same, and it would be unfair to pass over @nkdengineer's proposal due to some implementation details, in my opinion. If @techievivek thinks those implementation details are important then maybe we could implement them and come to some kind of arrangment in terms of compensation. |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.1.51-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check - new feature testing
If this was caught during regression testing, add the test name, ID and link from TestRail: #60997
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 14.5/ Chrome
App Component: Other
Action Performed:
Navigate to https://staging.new.expensify.com
Create a new public account
Choose anything but "Manage my team's expenses" to reach the test drive modal
Enter a valid email on the email field and click on "Start test Drive"
After being directs to the expense submission page
Click on the tooltip above the "create" button
Expected Result:
Clicking on tooltip creates the expense
Actual Result:
Clicking on tooltip is not functional.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6841054_1748077573580.Screen_Recording_2025-05-24_at_11.43.45_in_the_morning.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: