-
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
[HOLD for payment 2023-06-05] [$1000] Remove checkbox from Money request header #19332
Comments
Triggered auto assignment to @tjferriss ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPosting proposal early as per new guidelines Please re-state the problem that we are trying to solve in this issue.Money request header title has I beam cursor instead of pointer while hovering. What is the root cause of that problem?Money request header rendered via 1. So requestor rows rendered via App/src/components/MoneyRequestHeader.js Line 91 in 7378626
Eventually HeaderWithCloseButton will render App/src/components/HeaderWithCloseButton.js Lines 170 to 174 in 7378626
App/src/components/AvatarWithDisplayName.js Lines 77 to 84 in 7378626
We can see at line 82 we are passing text styles without cursor style, So it is display I beam cursor due text being selectable by nature. 2. Payee render from App/src/components/MoneyRequestHeader.js Lines 120 to 125 in 7378626
We can see at line 121 we are passing text styles without cursor style, So it display I beam cursor. So this is the root cause of the problem for both places. What changes do you think we should make in order to solve the problem?To solve this we have to set default cursor style at two place. <DisplayNames
...
// textStyles={[styles.headerText, styles.pre]} // *** Old ***
textStyles={[styles.headerText, styles.pre, styles.cursorDefault]} // *** Updated ***
...
/> Within <Text
// style={[styles.headerText, styles.pre]} // *** Old ***
style={[styles.headerText, styles.pre, styles.cursorDefault]} // *** Updated ***
...
>
{payeeName}
</Text> So it will solve the issue and shows default cursor for both Requester and Payee as shown in result video. Important: We can not set pointer cursor because there is not any action on click of the text. So we have to use default cursor. Proposal to Set Checkmark and Settled textWithin <MenuItemWithTopDescription
title={formattedTransactionAmount}
// description={`${props.translate('iou.amount')} • ${props.translate('iou.cash')}`} // *** Old Code ***
description={`${props.translate('iou.amount')} • ${props.translate('iou.cash')}${isSettled ? ` • ${props.translate('iou.settledExpensify')}` : ''}`} // *** Updated Code ***
descriptionRightIcon={isSettled ? Expensicons.Checkmark : false} // *** Add this prop
....
/> We have remove old checkmark icon from code block here. Then we have to update this code as shown below: <View style={[styles.flexRow, styles.alignItemsCenter]}>
{Boolean(props.title) && (
<Text
style={titleTextStyle}
numberOfLines={1}
>
{convertToLTR(props.title)}
</Text>
)}
{Boolean(props.descriptionRightIcon) && (
<View style={[styles.ml2]}>
<Icon
src={props.descriptionRightIcon}
fill={themeColors.iconSuccessFill}
/>
</View>
)}
</View> So this will show the checkmark icon at right side of the amount and show What alternative solutions did you explore? (Optional)None. ResultsDefaultCursor.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Money request header title has I beam cursor instead of pointer while hovering. What is the root cause of that problem?If the items in the header are not intended to be clickable, then there may not be an issue to fix. But if we plan to make any of the items clickable then the root cause of this issue is not defining pointer styles for those items. What changes do you think we should make in order to solve the problem?To fix these issues, we need to first confirm if any of these header items are going to be clickable in future. Few examplesScreen.Recording.2023-05-20.at.6.46.11.PM.movAlso, we need to define Tooltips for all header items or follow the design team's suggestion. This is the current scenario:For Money Request Page
For Task Pages
We will be making these changes in What alternative solutions did you explore? (Optional)We can also go with default cursors and consistent tooltips |
Hmm why does the To field have a checkmark here? cc @JmillsExpensify @trjExpensify But I think this isn't really a bug if you can't actually click the header title to navigate anywhere, then no need for a pointer mouse. |
I think I'm blinded by EC3, can you link me to the vid showing that? 😅 I agree it shouldn't have a pointer mouse if it's not clickable, and I don't think we have any immediate plans to add some kind of "room details" for a expense/iouReport. |
@trjExpensify I think @shawnborton is referring to the first video here |
Ah, I see it now. Yes, that's an error. The transaction view once settled should look like this: @mountiny @luacmartins @Julesssss - I've been out of the loop at EC3 for a couple of days, is this fix up somewhere else? |
Not as far as I'm aware. Given that it's minor we can probably sneak the fix into this issue/proposal |
I dont think so, I think this is just the checkmark from the IOU/ expense report as the header is same component. |
Cool, and then on the transactions details we're missing the checkmark alongside the amount field value and "settled" in the amount field header after the dot separator. |
ProposalUpdated that includes Checkmark and "Settled" text. |
@Julesssss I think we could give this task to @PrashantMangukiya and work with them to resolve it |
Job added to Upwork: https://www.upwork.com/jobs/~0199442829f9113a36 |
Current assignee @tjferriss is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Current assignee @Julesssss is eligible for the External assigner, not assigning anyone new. |
Hey @aimane-chnaif, could you please give this proposal a review before I assign @PrashantMangukiya? Thanks |
Just to confirm: do nothing about cursor but the issue to fix here is checkmark issue, right? |
We'd like to include both in this PR if possible. |
I agree that this is not a bug, the cursor is a pointer on other chat headers because clicking on the avatar opens the details page. Unless we intend to also add that functionality, we can probably close this. What do you think @Julesssss ? |
Thanks Georgia, that makes sense and I agree. @aimane-chnaif I updated the title and description to make this clear. |
ok let's assign @PrashantMangukiya for checkbox fix |
📣 @PrashantMangukiya You have been assigned to this job by @Julesssss! |
@Julesssss @aimane-chnaif Thank you. I will prepare and submit PR within three hours asap. |
Agree with where we landed here, thanks everyone. 👍 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.19-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-06-05. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Ping for Upwork. |
Sorry for the delay. All offers have been sent via Upworks and I'll process payment as they're accepted. @PrashantMangukiya and @aimane-chnaif will get the 50% speed bonus. @aimane-chnaif can you please help out with the checklist? |
@tjferriss Offer accepted. Thank you. |
This is not a bug but feature. |
All the payments have been sent. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
No checkbox should appear
Actual Result:
A checkbox appears
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.16-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-05-17.at.17.14.38.mov
Recording.671.mp4
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684318740704459
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: