You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-02-26] [$500] Workspace name in Distance request flow is wrong color #33976
changed the title [-]Workspace name in Distance request flow is wrong color[/-][+][$500] Workspace name in Distance request flow is wrong color[/+]on Jan 4, 2024
Therefore, the OptionRow component applies the isDisbaled style to the displayNameStyle. Hence, any workspace will look different from the rest of the items on the menu.
What changes do you think we should make in order to solve the problem?
Just like how IOURequestStepConfirmation uses the value of participant.isPolicyExpenseChat to get the policyExpenseChat, we should replicate it in MoneyTemporaryForRefactorRequestConfirmationList for consistency.
What alternative solutions did you explore? (Optional)
We could also use the prop isPolicyExpenseChat, instead of using !participant.isPolicyExpenseChat. It is already passed to the MoneyTemporaryForRefactorRequestConfirmationList component by IOURequestStepConfirmation
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@ntdiary] The PR that introduced the bug has been identified. Link to the PR:
[@ntdiary] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@ntdiary] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@ntdiary] Determine if we should create a regression test for this bug.
[@ntdiary] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@ntdiary] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: No need
[@ntdiary] Determine if we should create a regression test for this bug. Yes
[@ntdiary] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. As shown below
[@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Regression test steps:
Log in with an account that has a workspace.
Click the FAB and select Request Money.
Click Manual tab and type any amount, then click Next button.
Select a workspace report.
Verify that the workspace name under the To fields is in our standard text color and clickable to open the details page.
Even though it's small I think it's pretty quick to check, it would just be adding a line confirming the color to whatever existing test creates the workflow. I think it's worth adding!
If you want to do a quick test, I'm sure QA can roll it in to what they already have and simplify
Even though it's small I think it's pretty quick to check, it would just be adding a line confirming the color to whatever existing test creates the workflow. I think it's worth adding!
@ntdiary Let's use the Slack thread to align on next steps, I just commented there. I'm going to close this issue for now, though I can re-open if you need to be paid via Upwork.
Activity
[-]Workspace name in Distance request flow is wrong color[/-][+][$500] Workspace name in Distance request flow is wrong color[/+]melvin-bot commentedon Jan 4, 2024
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 4, 2024
Job added to Upwork: https://www.upwork.com/jobs/~015105603136672151
melvin-bot commentedon Jan 4, 2024
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Jan 4, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (
External)abzokhattab commentedon Jan 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
the workspace item under
Toin the confirmation list is disabledWhat is the root cause of that problem?
in the confimration list, the to participants items are listed as disabled if the target participant is
isOptimisticPersonalDetail(a new user)App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Lines 439 to 442 in 5b0ceb2
and here the
isOptimisticPersonalDetailis true when theaccountIDof the report is0so in this case the report of the workspace has a 0 accountID:What changes do you think we should make in order to solve the problem?
we need to add a check that the report is not a workspace
or in case of the worksapce we can pass the
ownerAccountIDinstead of the accountID:this needs to be updated also here , here and here
POC:
yh-0218 commentedon Jan 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace name in Distance request flow is wrong color
What is the root cause of that problem?
Because that workspace is disabled here
So Workspace name in Distance request flow is wrong color
What changes do you think we should make in order to solve the problem?
Option1: We can make
isDisabledas false for workspace.Option2: we can keep
isDisabledas true for workspace and only change disable color of workspace as default text colorWhat alternative solutions did you explore? (Optional)
aim-salam commentedon Jan 4, 2024
.
Tony-MK commentedon Jan 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The workspace name in the Distance request flow is the wrong color
What is the root cause of that problem?
The following condition is true because the
participant.accountIDis zero.App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Line 441 in 5b0ceb2
Therefore, the
OptionRowcomponent applies theisDisbaledstyle to thedisplayNameStyle. Hence, any workspace will look different from the rest of the items on the menu.App/src/components/OptionRow.tsx
Line 131 in 5b0ceb2
What changes do you think we should make in order to solve the problem?
Just like how
IOURequestStepConfirmationuses the value ofparticipant.isPolicyExpenseChatto get thepolicyExpenseChat, we should replicate it inMoneyTemporaryForRefactorRequestConfirmationListfor consistency.App/src/pages/iou/request/step/IOURequestStepConfirmation.js
Line 138 in 5b0ceb2
Firstly, we can change the line, which brought the issue, to something similar to the code below.
Secondly, to navigate back to the request page, we will have to set
activeRouteas thebackToparam.Therefore, we will change the
navigateToReportOrUserDetailfunction to this.Futhermore, introduce the
backToargument in thegetRoutefunction forROUTES.REPORT_WITH_ID_DETAILS.Finally, we need to ensure the
shouldNavigateToTopMostReportprop does not cause any regressions when it is set to false.Edit the props of the
HeaderWithBackButtoncomponent like this.Also, introduce
backToparam inprops.route.params.What alternative solutions did you explore? (Optional)
We could also use the prop
isPolicyExpenseChat, instead of using!participant.isPolicyExpenseChat. It is already passed to theMoneyTemporaryForRefactorRequestConfirmationListcomponent byIOURequestStepConfirmationResult

68 remaining items
melvin-bot commentedon Feb 19, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Feb 19, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-5 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-02-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 19, 2024
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:
JmillsExpensify commentedon Feb 26, 2024
Alright, so circling back on this one. Payment summary as follows:
I'm not seeing any issues with regressions, so @ntdiary please fill out the BZ checklist above and we can get this checklist closed out.
melvin-bot commentedon Feb 26, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
ntdiary commentedon Feb 27, 2024
Regression test steps:
Request Money.Manualtab and type any amount, then clickNextbutton.Tofields is in our standard text color and clickable to open the details page.BTW, I'm applying to switch to NewDot for payment, so it might be better to hold this temporarily if possible. :)
dangrous commentedon Feb 27, 2024
Even though it's small I think it's pretty quick to check, it would just be adding a line confirming the color to whatever existing test creates the workflow. I think it's worth adding!
If you want to do a quick test, I'm sure QA can roll it in to what they already have and simplify
ntdiary commentedon Feb 28, 2024
Makes sense, have updated the testing steps. 😄
JmillsExpensify commentedon Mar 2, 2024
@ntdiary Let's use the Slack thread to align on next steps, I just commented there. I'm going to close this issue for now, though I can re-open if you need to be paid via Upwork.