Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.56k stars 2.9k forks source link

[HOLD for payment 2024-08-05] [$250] Sage Intacct - Workspace in "Reuse existing connection" list has different workspace avatar color #45848

Closed m-natarajan closed 3 months ago

m-natarajan commented 4 months ago

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: 9.0.10-2 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: applause internal team Slack conversation:

Action Performed:

Precondition:

  1. Go to staging.new.expensify.com
  2. Go to another workspace that is not connected to Sage Intacct.
  3. Go to Accounting.
  4. Tap Connect next to Sage Intacct.
  5. Select Reuse existing connection.

Expected Result:

The workspace in "Reuse existing connection" list will have the correct workspace avatar with background color.

Actual Result:

The workspace in "Reuse existing connection" list has different workspace avatar compared to the actual workspace avatar with always blue background color surrounding the letter "A".

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

Bug6548213_1721495024784!Screenshot_2024-07-21_at_01 00 17

https://github.com/user-attachments/assets/dbb7c2fa-7cf3-479c-87f8-360311b9bc45

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0140511183d3b4ac7e
  • Upwork Job ID: 1815697022094043995
  • Last Price Increase: 2024-07-23
  • Automatic offers:
    • ishpaul777 | Reviewer | 103247884
    • gijoe0295 | Contributor | 103247885
Issue OwnerCurrent Issue Owner: @bfitzexpensify
melvin-bot[bot] commented 4 months ago

Triggered auto assignment to @bfitzexpensify (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.

m-natarajan commented 4 months ago

@bfitzexpensify 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

m-natarajan commented 4 months ago

We think that this bug might be related to #vip-vsb

gijoe0295 commented 4 months ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Default workspace avatar mismatch in existing connections page.

What is the root cause of that problem?

We're missing avatarID causing the avatar background to be computed incorrectly:

https://github.com/Expensify/App/blob/c3b1ff22d9ed2c3243d6e269113f200caef42b04/src/pages/workspace/accounting/intacct/ExistingConnectionsPage.tsx#L29-L33

https://github.com/Expensify/App/blob/6562f7492c669d2ffb74b317ba5d9669c5d61b7a/src/components/Avatar.tsx#L97-L98

What changes do you think we should make in order to solve the problem?

Add avatarID as policy.id for the above menuItems.

melvin-bot[bot] commented 3 months ago

Job added to Upwork: https://www.upwork.com/jobs/~0140511183d3b4ac7e

melvin-bot[bot] commented 3 months ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (External)

ishpaul777 commented 3 months ago

reviewing πŸ‘€

ishpaul777 commented 3 months ago

@m-natarajan @bfitzexpensify Do we have any testing credentials for sage intacct integration or steps to to have a test acccount ?

gijoe0295 commented 3 months ago

For me, I hard coded because as elaborated in my proposal, root cause is not related to data:

  1. Navigate to ExistingConnectionsPage on press Connect:

https://github.com/Expensify/App/blob/03863a65c01cea8f56030006d25443e6a8dfe2d7/src/components/ConnectToSageIntacctButton/index.tsx#L64

Navigation.navigate(ROUTES.POLICY_ACCOUNTING_NETSUITE_EXISTING_CONNECTIONS.getRoute(policyID));
  1. Return any policy data in this function:

https://github.com/Expensify/App/blob/e0581a8c59a3083e0d3e432c8b8f4d199ef1b778/src/libs/actions/Policy/Policy.ts#L3148

ishpaul777 commented 3 months ago

it makes sense πŸ‘ Thanks @gijoe0295.


Proposal from @gijoe0295 LGTM!

It appears we have the same issue in netsuite existing-connections page lets fix it in the PR also

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed

melvin-bot[bot] commented 3 months ago

Triggered auto assignment to @carlosmiceli, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] commented 3 months ago

πŸ“£ @ishpaul777 πŸŽ‰ An offer has been automatically sent to your Upwork account for the Reviewer role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job

melvin-bot[bot] commented 3 months ago

πŸ“£ @gijoe0295 πŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

melvin-bot[bot] commented 3 months ago

Reviewing label has been removed, please complete the "BugZero Checklist".

melvin-bot[bot] commented 3 months ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.13-4 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-08-05. :confetti_ball:

For reference, here are some details about the assignees on this issue:

melvin-bot[bot] commented 3 months ago

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:

gijoe0295 commented 3 months ago

@bfitzexpensify @ishpaul777 It's payment due.

bfitzexpensify commented 3 months ago

Hey @gijoe0295 - are you seeing anything strange with the contract on your end? When I attempt to close and pay it out, I am seeing this error:

image
gijoe0295 commented 3 months ago

@bfitzexpensify There was no problem on my side. I received the payment.

Screenshot 2024-08-07 at 21 21 56
bfitzexpensify commented 3 months ago

Great, thanks for confirming. @ishpaul777 if you can get the BZ checklist complete I'll finalise the C+ payout too

ishpaul777 commented 3 months ago
bfitzexpensify commented 3 months ago

Thanks @ishpaul777 - offer sent.

ishpaul777 commented 3 months ago

Accepted offer! Thank you

bfitzexpensify commented 3 months ago

Great - all paid out. Thanks everyone!