-
Notifications
You must be signed in to change notification settings - Fork 3k
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-12-25][$250] Expense view does not show reimbursement date #53872
Comments
Triggered auto assignment to @sonialiap ( |
We believe the issue might be because the The
|
Job added to Upwork: https://www.upwork.com/jobs/~021866639204440111557 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Going ahead and making this external. A contributor should be able to help us add support for the |
Edited by proposal-police: This proposal was edited at 2024-12-11 04:07:34 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The reimbursed action isn't visible in ND. What is the root cause of that problem?An action will be visible only if it's listed on the supported action list that is coming from ACTIONS.TYPE constant. App/src/libs/ReportActionsUtils.ts Lines 631 to 651 in f9ec4fa
Lines 1009 to 1013 in f9ec4fa
However, What changes do you think we should make in order to solve the problem?Add It's bold and in multiple lines because the message array contains several items and all of them have strong property. To show it in 1 line and in muted text color, we can handle it like the other cases by checking its action type and using App/src/pages/home/report/ReportActionItem.tsx Lines 680 to 693 in f9ec4fa
![]() OR another way (and cleaner IMO) is to return the message fragment here as 1 item array. App/src/libs/ReportActionsUtils.ts Lines 1385 to 1401 in f8f12c2
So, we don't need to render the custom it's not translatable, if we want to make it translatable, then we need to construct the message manually using the information available from the What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can test If we use |
Edited by proposal-police: This proposal was edited at 2024-12-11 04:43:52 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.REIMBURSED action is not visible in new dot What is the root cause of that problem?There is no logic for rendering REIMBURSED. So this can be considered a new feature What changes do you think we should make in order to solve the problem?Messages like reimbursement are rendered from ReportActionItemMessage which gets text from getReportActionMessageFragments using below logic: App/src/libs/ReportActionsUtils.ts Lines 1385 to 1390 in f9ec4fa
So, we need to add REIMBURSED action type in the array inside isOldDotReportAction and case for it in getMessageOfOldDotReportAction which would look like case CONST.REPORT.ACTIONS.TYPE.REIMBURSED:
return Localize.translateLocal('report.actions.type.reimbursed', originalMessage); we would also need to add types in OldDotAction.ts type OldDotOriginalMessageActionName =
...
| 'REIMBURSED'
...
/**
*
*/
type OriginalMessageReimbursed = {
/**
*
*/
actionName: typeof CONST.REPORT.ACTIONS.TYPE.REIMBURSED;
/**
* this can be taken as separate type during PR
*/
originalMessage: {
"accountNumber": string,
"creditBankAccountNumber": string,
"expectedDate": string,
"isNewDot": boolean,
"lastModified": string,
"method": string,
"routingNumber": string
} & Record<string, unknown>
}
type OldDotOriginalMessageMap = {
...
[CONST.REPORT.ACTIONS.TYPE.REIMBURSED]: OriginalMessageReimbursed;
...
} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA since this is a migration issue What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@bernhardoj How did you manage to replicate it locally ? |
@jaydamani Your proposal makes sense to me . Can you please include a testing section ? |
@fedirjh I just paid with expensify (with the test bank account). |
@justinpersaud Should we translate the system message in new dot ? |
@fedirjh Since we're trying to get this change out sooner than later, we aren't concerned about translations right now. |
Thanks, in this case I think we should move forward with @bernhardoj's proposal. 🎀 👀 🎀 C+ reviewed |
Current assignee @justinpersaud is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@justinpersaud Just to give credit to @jaydamani for his proposal. If we want to translate this later, then I think his approach is the standard one for translating oldDot messages. |
I'm OOO Dec 16-20, adding a leave buddy next steps:
|
Triggered auto assignment to @joekaufmanexpensify ( |
PR is ready cc: @fedirjh |
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. |
PR out on staging. Seems like based on the above this did not introduce a regression. |
As an fyi, I am OOO until the new year. Please ask in slack if anything urgent BZ related comes up. Otherwise, I will handle payment when I return! |
This issue has not been updated in over 15 days. @justinpersaud, @sonialiap, @fedirjh, @bernhardoj, @joekaufmanexpensify eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@sonialiap Looking at this one, I see I was just an OOO buddy, so going to unassign here now that the holidays are over. I think all that's left is to issue payment. LMK if there's anything else I can help with! |
Looks like automation didn't run PR (#54102) was deployed to prod 3 weeks ago, this is ready for payment |
Payment summary:
|
@fedirjh please complete the checklist. Automation didn't run so sharing it here: Click to unfurl checklist
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Requested in ND. |
$250 approved for @bernhardoj |
$250 approved for @fedirjh |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.73-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): Anyone
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @justinpersaud
Slack conversation (hyperlinked to channel name): #product
Action Performed:
Expected Result:
The report should show when the reimbursement is estimated to happen, e.g. this is what it looks like in OldDot
Actual Result:
The message above is not displayed.
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?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @fedirjhThe text was updated successfully, but these errors were encountered: