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
Bank account label in Workspace > Workflows > Make or track payments is too small #40204
Please re-state the problem that we are trying to solve in this issue.
Bank account label in Workspace > Workflows > Make or track payments is too small
What is the root cause of that problem?
When hasVBA is true we are using textLabelSupportingNormal which has fontSizeLabel: getValueUsingPixelRatio(13, 19) for font size. The hasVBA is true because we even if we have reimburser login so we need to check for bankDisplayName also.
Please re-state the problem that we are trying to solve in this issue.
Incorrect font size for Connect Bank Account text.
What is the root cause of that problem?
Currently, when we click on connect bank account we set hasVBA to true as we set the field reimburser inside of ACHAccount to the current policy owner email, but if we navigate back without connecting the bank account, then even though the bank account is not connected, yet hasVBA would be set to true as we have set the value of reimbursed:
Now, this will set the style of the text to styles.textLabelSupportingNormal which has 13px as font size, but the text is still connect bank account and hence wrong style would be applied over here
What changes do you think we should make in order to solve the problem?
We should add a extra boolean condition like we do when we check which one to display between Connect Bank Account and Bank Account in the same component we check the condition as follows for text, so we can apply the same condition for style as well:
This issue will fix here #39947, it has the same root cause. The style condition is correct hasVBA ? 13 : 15 but the issue is the hasVBA declaration is not correct after disable and then enable the "Make or track payments" for the first time, and this will fix here #39947.
Activity
melvin-bot commentedon Apr 13, 2024
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.Krishna2323 commentedon Apr 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Bank account label in Workspace > Workflows > Make or track payments is too small
What is the root cause of that problem?
When
hasVBAis true we are usingtextLabelSupportingNormalwhich hasfontSizeLabel: getValueUsingPixelRatio(13, 19)for font size. ThehasVBAis true because we even if we havereimburserlogin so we need to check forbankDisplayNamealso.App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Line 180 in db9e01c
App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Line 87 in db9e01c
What changes do you think we should make in order to solve the problem?
We should also check for
bankDisplayNamefor applying styles.What alternative solutions did you explore? (Optional)
allgandalf commentedon Apr 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Incorrect font size for
Connect Bank Accounttext.What is the root cause of that problem?
Currently, when we click on
connect bank accountwe sethasVBAto true as we set the fieldreimburserinside ofACHAccountto the current policy owner email, but if we navigate back without connecting the bank account, then even though the bank account is not connected, yethasVBAwould be set to true as we have set the value ofreimbursed:App/src/types/onyx/Policy.ts
Lines 193 to 200 in db9e01c
Now, this will set the style of the text to
styles.textLabelSupportingNormalwhich has13pxas font size, but the text is stillconnect bank accountand hence wrong style would be applied over hereWhat changes do you think we should make in order to solve the problem?
We should add a extra boolean condition like we do when we check which one to display between
Connect Bank AccountandBank Accountin the same component we check the condition as follows for text, so we can apply the same condition for style as well:App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Lines 182 to 186 in db9e01c
Update :
App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Lines 179 to 180 in db9e01c
To:
What alternative solutions did you explore? (Optional)
ahmedGaber93 commentedon Apr 13, 2024
This issue will fix here #39947, it has the same root cause. The style condition is correct
hasVBA ? 13 : 15but the issue is thehasVBAdeclaration is not correct after disable and then enable the "Make or track payments" for the first time, and this will fix here #39947.Tested in last main.
Screen.Recording.2024-04-13.at.9.26.42.PM.mov
ikevin127 commentedon Apr 14, 2024
I can confirm that this issue will be fixed as part of the already open PR #40182 from issue:
Specifically the following lines of code:
hasVBAcheck.shouldShowBankAccountvariable.titleStylecorrectly based onshouldShowBankAccount.slafortune commentedon Apr 15, 2024
Thanks @ikevin127 , in that case, let's close this 👍