-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 2024-03-11] [$500] Required label in push row should be removed if value is present #36608
Comments
Triggered auto assignment to @muttmuure ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Required label in push row should be removed if value is present What is the root cause of that problem?
There's no logic to hide Required label when field is empty What changes do you think we should make in order to solve the problem?update condition like this: Apply same to tag, merchant |
ProposalPlease re-state the problem that we are trying to solve in this issue.Required label shows even though the value is present for the push row What is the root cause of that problem?At the moment we do not have any condition to not show the required label when the value for the push item is present. What changes do you think we should make in order to solve the problem?As I am seeing {!title && showRequiredLabel && (
<View style={styles.justifyContentCenter}>
<Text style={styles.rightLabelMenuItem}>{translate('common.required')}</Text>
</View>
)} App/src/components/MenuItem.tsx Lines 612 to 616 in 20ca041
OldI can see we used !title && !!rightLabel App/src/components/MenuItem.tsx Lines 605 to 609 in 2fe384c
ResultScreen.Recording.2024-02-15.at.22.54.57.mov |
This is exactly the same issue I reported here. |
Job added to Upwork: https://www.upwork.com/jobs/~012f130f43465b030a |
Current assignee @aimane-chnaif is eligible for the Internal assigner, not assigning anyone new. |
Current assignee @aimane-chnaif is eligible for the External assigner, not assigning anyone new. |
@cead22, @muttmuure, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
|
@mkhutornyi's proposal looks good to me. Update we're going with @Pujan92 's proposal |
Current assignee @cead22 is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@aimane-chnaif @cead22 I have updated my proposal, Can you plz give a look at it as I think it helps to reduce the conditions and be more generic. |
I still don't like introducing specific props/values in general component. |
Ok, I thought it makes sense to add it as it defines the intended behavior. Bcoz for right side content we already have |
I like @Pujan92 's proposal better because all the required labels work the same today in that if there's a value to display ( We wouldn't be introducing a new prop, we'd be replacing If we want to keep the change a bit smaller, and keep the ability of putting something other than {!title && (
<View style={styles.justifyContentCenter}>
<Text style={styles.rightLabelMenuItem}>{rightLabel}</Text>
</View>
)} |
ok let's go with that given that there will be no other cases of showing right label other than "Required" (at least for now) No problem at this moment but there might be cases of showing title and right label at the same time in the future, as MenuItem is general component |
📣 @Pujan92 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@aimane-chnaif @cead22 To confirm, do we need to proceed by updating the prop to |
I think ^ |
Yeah. Let's keep the |
Thanks, PR is ready for review! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.46-2 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 2024-03-11. 🎊 For reference, here are some details about the assignees on this 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:
|
This on the payment stage, so not overdue |
Was ooo, handling now |
All paid up |
@aimane-chnaif @Pujan92 could you confirm if we need a regression test? |
Regression Test Proposal
|
Thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.42-1
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1708010208553859
Action Performed:
You need to have a workspace that required categories and tags
Expected Result:
"Required" shouldn't appear on the category, tag, or merchant fields if already a value present. Note the required label isn't showing on the merchant field in the screenshot below because the PR to add that was just merged and I pulled the screenshot from stagign
Actual Result:
The required label persists even after the value is there.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: