-
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
[$125] Invoices - Add bank account button in invoice report remains after bank account is added #50474
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-bills |
Edited by proposal-police: This proposal was edited at 2024-10-27 14:58:25 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The "Add Bank Account" button in the invoice report remains visible even after a bank account is added. What is the root cause of that problem?The condition that determines whether the button should be shown uses
What changes do you think we should make in order to solve the problem?
ReportActionItemMessage: ...
...action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && ReportUtils.hasMissingInvoiceBankAccount(reportID) && ( <AddBankAccountActionButton/> ) AddBankAccountActionButton const [invoiceReport] = useOnyx(REPORTS_KEY, reportID)
const [policy] = useOnyx(POLICY_KEY, `invoiceReport?.policyID`);
useEffect( () => {
ReportUtils.hasMissingInvoiceBankAccount(reportID)
},[reportID,policy])
return <Button
....
optional: we can modify the function to take the report itself, not the id. What alternative solutions did you explore? (Optional)An alternative is to use |
@twisterdotcom Eep! 4 days overdue now. Issues have feelings too... |
Not sure about that solution because the bank account isn't policy linked is it? Anyway, I agree this is an issue, but minor. |
Job added to Upwork: https://www.upwork.com/jobs/~021846353790748148311 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Upwork job price has been updated to $125 |
@abzokhattab your proposal looks good to me but it is going to add a subscription to each msg item which is heavy. How can we optimize this? |
let me know what you think about that |
@twisterdotcom @parasharrajat this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
bump on @abzokhattab's Q @parasharrajat |
@abzokhattab What about we move the button and report subscription to a small component inside the |
Good idea, looks good to me Updated my proposal to implement this approach |
OK. Thanks @abzokhattab's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I agree. Hiring. |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@twisterdotcom @parasharrajat @neil-marcellini @abzokhattab this issue is now 4 weeks old, please consider:
Thanks! |
@abzokhattab Any update? |
@abzokhattab please raise a PR in the next couple days, or we might have to re-assign the issue. |
Sorry i missed the notifications, working on it today! |
It seems that modifying the button alone won’t be sufficient to fix the issue. There's another problem where the button still appears even after a page refresh. Screen.Recording.2024-11-07.at.23.27.23.movIn order to debug this, I added a log in the hasMissingInvoiceBankAccount function to output the In the screenshot, the If this parameter has been updated in the backend, then we may need to replace all instances of Another approach could be to implement the same logic used in Let me know your thoughts on how we should proceed based on these observations. |
This can't be done as we add many accounts. Not all are used for invoicing. |
@neil-marcellini Can you please help us determine what's going on? Are there new changes that need to be updated for invoicing? |
I see but why are we using the @neil-marcellini, could you please share your perspective on this? |
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.46-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5054125
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
In Step 8, the button should disappear after bank account is added
Actual Result:
In Step 8, the button remains after bank account is added
In Step 9, the button leads to workspace list when bank account is added
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6628504_1728403401110.20241008_235741.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @parasharrajatThe text was updated successfully, but these errors were encountered: