-
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-21] [$1000] Inconsistent styling on create task push to page #20007
Comments
Job added to Upwork: https://www.upwork.com/jobs/~018dddd8a08831da39 |
Triggered auto assignment to @muttmuure ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Current assignee @thienlnam is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Make task page confirmation styles consistent What is the root cause of that problem?Not a bug but a feature. What changes do you think we should make in order to solve the problem?We have to edit our
Lastly, we also need to support an array of
At top of this condition, we have to add the following:
Once these changes are applied, we can use
Once we use the The approach can be further optimised in a PR. What alternative solutions did you explore? (Optional)This needs to be changed to:
This needs to be changed to:
Result |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistent styling on create task push to page What is the root cause of that problem?Not providing right styles to the text and icons What changes do you think we should make in order to solve the problem?We could make the styles consistent by changing these lines -
and pass these styles to icon -
What alternative solutions did you explore? (Optional) |
@allroundexperts Thanks for the proposal. Can we re-use |
@sethraj14 Thanks for the proposal. Same question as above ^ |
Yep. We can. Posting 'how' in some time. |
Yes, I was exploring the same as we use this in every other place. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistent styling on create task push to page What is the root cause of that problem?Not providing right styles to the text and icons What changes do you think we should make in order to solve the problem?In order to shift to MenuItemWithTopDescription we have these fields to map -
After adding these props, we need to change the MenuItem file like this here- {Boolean(props.icon) && _.isArray(props.icon) && (
<MultipleAvatars
icons={props.icon}
size={CONST.AVATAR_SIZE.DEFAULT}
secondAvatarStyle={[StyleUtils.getBackgroundAndBorderStyle(themeColors.appBG)]}
/>
)}
{Boolean(props.alternateText) && (
<View style={[styles.pl0]}>
<Text
style={titleTextStyle}
numberOfLines={1}
>
{convertToLTR(props.title)}
</Text>
<Text style={StyleUtils.combineStyles(styles.sidebarLinkText, styles.optionAlternateText, styles.textLabelSupporting, styles.pre)}>
{props.alternateText}
</Text>
</View>
)} Hover should be there as it will be consistent with other similar screens. Discard Finally the NewTaskPage file will look like this - <ScrollView>
<View style={styles.flex1}>
<MenuItemWithTopDescription
description={props.translate('newTaskPage.title')}
title={props.task.title}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_TITLE)}
shouldShowRightIcon={true}
/>
<MenuItemWithTopDescription
description={props.translate('newTaskPage.description')}
title={props.task.description}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_DESCRIPTION)}
shouldShowRightIcon={true}
/>
<MenuItemWithTopDescription
alternateText={assignee.subtitle}
description={props.translate('newTaskPage.assignee')}
title={assignee.displayName || ''}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_ASSIGNEE)}
shouldShowRightIcon={true}
icon={assignee.icons}
/>
<MenuItemWithTopDescription
alternateText={shareDestination.subtitle}
description={props.translate('newTaskPage.shareSomewhere')}
title={shareDestination.displayName || ''}
onPress={() => Navigation.navigate(ROUTES.NEW_TASK_SHARE_DESTINATION)}
shouldShowRightIcon={true}
icon={shareDestination.icons}
/>
<FormAlertWithSubmitButton
isAlertVisible={submitError}
message={errorMessage}
onSubmit={() => onSubmit()}
enabledWhenOffline
buttonText={props.translate('newTaskPage.confirmTask')}
containerStyles={[styles.mh0, styles.mt5, styles.flex1]}
/>
</View>
</ScrollView> The final solution will be cleaned and optimized. What alternative solutions did you explore? (Optional)We could make the styles consistent by changing these lines -
and pass these styles to icon -
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
@allroundexperts Thanks. This is looking good but let's not worry about the hover style, it's better to keep it for consistency. 🎀 👀 🎀 C+ reviewed cc @thienlnam |
@sethraj14 Thanks. I think the idea is the same as @allroundexperts's so we will just go with the first. But feel free to check other issues with Help Wanted label here. |
📣 @allroundexperts You have been assigned to this job by @thienlnam! |
Assigned, thanks! Also one more thing can we make sure to add a bold style to the assignee name while we're already here? |
PR created #20145 |
@s77rt, @allroundexperts, @thienlnam, @muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue. PR is merged. |
Not on prod yet |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.27-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-21. 🎊 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:
|
@allroundexperts @s77rt invited to job |
@muttmuure Applied! |
Offer sent to @s77rt. Still waiting on @allroundexperts to apply |
Can you send me the link please? |
@muttmuure Accepted! |
@s77rt paid, @allroundexperts offer sent |
@muttmuure Accepted! |
I think we're all good here? @allroundexperts Did your contract get paid out? |
Seems like its still in progress @thienlnam. |
Contract paid out for @allroundexperts too. Thanks for your patience here! |
https://expensify.slack.com/archives/C04QEB4MJEQ/p1685378425623999
The labels should use our textSupporting color
The small label should be closer to the value
the arrows/carets should use our icon color and should be at 20x20
The style on the second step of creating a task is inconsistent with the push-to-page style from other places in the app. I feel like we keep recreating this style instead of just using the same global component.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: