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
2.99k stars 2.5k forks source link

[Wave Collect][Xero] Main export configuration #41554

Closed rushatgabhane closed 1 week ago

rushatgabhane commented 2 weeks ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/39735 PROPOSAL:

Tests

Pre-requisite:

  1. Xero enabled and synced already for any given workspace.
  2. Be on Accounting Beta and Xero beta.

Test

  1. Go to workspace having Xero account that's already synced.
  2. Go to Accounting
  3. Click export
  4. Verify that Export page opens in RHP
image

Offline tests

QA Steps

Same as tests.

PR Author Checklist

Screenshots/Videos

iOS: Native https://github.com/Expensify/App/assets/29673073/7009336c-be2e-4b9c-833b-ea9b0c81a50d image
iOS: mWeb Safari https://github.com/Expensify/App/assets/29673073/6c97b770-38cb-4d6d-b403-c590b0ab9a1b image image
MacOS: Chrome / Safari image
MacOS: Desktop image
rushatgabhane commented 2 weeks ago

This has broken spanish language, and we'll need a spanish copy for all text here -

image
mananjadhav commented 2 weeks ago

Code changes look fine. I’ll finish the checklist in a few hours.

melvin-bot[bot] commented 2 weeks ago

@mollfpr Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

trjExpensify commented 2 weeks ago

This has broken spanish language, and we'll need a spanish copy for all text here -

image

Looks like our casing might be off on a couple of labels here for Purchase bill date and Xero bank account, as well as the out of pocket export value to be Purchase bill. I'd expect the first letter to be capitalised only, like the others. Same goes for the educational subtext. We don't need to capitalise Purchase Bill in that paragraph, like we don't Xero bank account in the second educational subtext for company cards.

Is that value in the push input just a placeholder? If not, it should be Date of last expense.

trjExpensify commented 2 weeks ago

Discussion point: I think the text we're using here feeds confusion and we shouldn't carry it over from OldDot. There's a setting in Advanced to change the status of the purchase bill on export to Awaiting payment, Awaiting approval or Draft. So for example, if I change that to Draft the expense report will export as a draft purchase bill, but the subtext we're using here doesn't reflect that. The same goes for the purchase bill date, if I change that to Exported date for example it doesn't reflect that either, needless to say that phrasing is ambiguous as to whether it's the last day of the month or the date of last expense in that month (both bolded for emphasis below):

Reports will export as a Purchase Bill awaiting payment, posting on the last day of the month in which expenses were incurred. This is the only export option with Xero.

We could make that text "dynamic", but we could also avoid it and make this clearer. I don't really see why we need to have the purchase bill status in a separate place in Advanced, so I think we could tighten this up by doing the following:

  1. Update the subtext
  2. Move the status selector to where you configure your purchase bill export in Export

That would get us this:

image

Thoughts, @Expensify/design @zanyrenney?

rushatgabhane commented 2 weeks ago

Is that value in the push input just a placeholder? If not, it should be Date of last expense

Yes, it'll be taken care in another issue that implements the push input page

rushatgabhane commented 2 weeks ago

Added english copy from the docs

I agree that we need to refine it

image
trjExpensify commented 2 weeks ago

Yeah, I still think it's incorrect. 😄

shawnborton commented 2 weeks ago

I like your suggestions Tom!

trjExpensify commented 2 weeks ago

Dope, appreciate the hipcheck! @rushatgabhane can you make those changes then, please?

rushatgabhane commented 2 weeks ago

@trjExpensify

Does this look better? I moved set status from advanced to export page. Please ignore the status and date values.

image
trjExpensify commented 2 weeks ago

@trjExpensify

Does this look better? I moved set status from advanced to export page. Please ignore the status and date values.

image

Much better! Small tweak to make that sentence flow better:

Reports will export as a purchase bill, using the date and status you select below.

mananjadhav commented 2 weeks ago

@trjExpensify While you're at the content, can we also get the Spanish translations?

trjExpensify commented 2 weeks ago

Just this line?

Reports will export as a purchase bill, using the date and status you select below.

mananjadhav commented 2 weeks ago

Waiting on the Spanish translation before I get to the checklist. Tested on web so far and all looks good.

rushatgabhane commented 2 weeks ago

Just this line?

No, the whole page actually. @trjExpensify we need translation for this entire page 🙇

Asked on slack - https://expensify.slack.com/archives/C036QM0SLJK/p1714903467537949

Screenshot 2024-05-05 at 15 30 42
lakchote commented 1 week ago

Just this line?

No, the whole page actually. @trjExpensify we need translation for this entire page 🙇

Asked on slack - https://expensify.slack.com/archives/C036QM0SLJK/p1714903467537949

Asked for spanish translations here

pecanoro commented 1 week ago

Also, friendly reminder to add QA and tests to the description

lakchote commented 1 week ago

@Expensify/design could you double check everything look correct?

shawnborton commented 1 week ago

Where is the best place to find the latest screenshots?

mananjadhav commented 1 week ago

Starting to test now.

mananjadhav commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native android-xero-export
Android: mWeb Chrome mweb-chrome-xero-export
iOS: Native ios-xero-export
iOS: mWeb Safari mweb-safari-xero-export
MacOS: Chrome / Safari web-xero-export-en web-xero-export-es
MacOS: Desktop desktop-xero-export
melvin-bot[bot] commented 1 week ago

We did not find an internal engineer to review this PR, trying to assign a random engineer to #39735 as well as to this PR... Please reach out for help on Slack if no one gets assigned!

mananjadhav commented 1 week ago

@lakchote @pecanoro All yours.

Also, friendly reminder to add QA and tests to the description

@rushatgabhane Can you update the QA steps section to atleast mention same as Tests ?

pecanoro commented 1 week ago

The QA steps are super short, I am assuming that besides the page opening, we need to test the different options work?

rushatgabhane commented 1 week ago

The QA steps are super short, I am assuming that besides the page opening, we need to test the different options work?

@pecanoro no, we don't need to test if the options work. They will be implemented in separate PRs

pecanoro commented 1 week ago

@mananjadhav We are missing one checkbox in the checklist 😄

mananjadhav commented 1 week ago

@pecanoro Just done.

lakchote commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
OSBotify commented 1 week ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify commented 1 week ago

🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.72-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
OSBotify commented 5 days ago

🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.72-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅