Closed narefyev91 closed 4 days ago
@ishpaul777 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]
@MonilBhavsar could not make Eto's PR ready to review. Probably we can move here. Now we support fields visibility based on defined conditions, also new calculation from FE applied if user goes offline and distance rate is changed. I think we can start reviewing code and check if everything is good. I will prepare test cases and update videos in parallel.
Thanks @narefyev91! In QA and Tests, can we include the step to update the distance rate and ensure tax amount is updated accordingly?
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and not onIconClick
).myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components using Avatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. for onClick={this.submit}
the method this.submit
should be bound to this
in the constructor)this
are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this);
if this.submit
is never passed to a component event handler like onClick
)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG
)Avatar
is modified, I verified that Avatar
is working as expected in all cases)Design
label and/or tagged @Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test
steps.On my list for today π
currently i am enabling policy.customUnits.attributes.taxEnabled
by executing Onyx in console is there a better way to enable it currently in App ?
You can do it from oldDot app. Go to Workspaces > Select a workspace > Expenses > Distance
Got it! Thanks @MonilBhavsar
Thanks for the updates! Some more comments. Let's update this too and re test π
Thanks for the updates! Some more comments. Let's update this too and re test π
done!
It works great, i just noticed one thing that feels confusing UX, If tax is 0% we still show the edit amount and we really can't change it throws error
https://github.com/Expensify/App/assets/104348397/3a8c0b8b-e570-4b94-9773-9059d1cb4770
That's a feature π As far as we're displaying error, it's fine UX, I think
Not merging because of freeze
@MonilBhavsar what about spinning up a feature branch for these remaining XeroCon commit /app issues? Then we can merge into that once review and approved, to keep other issues moving and testing the changes in aggregate. We're doing that for the Xero integration and it's working great!
Sounds good! I'll do that. I was thinking to merge this next week after things stabilizes little.
: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.
π Deployed to staging by https://github.com/MonilBhavsar in version: 1.4.77-0 π
platform | result |
---|---|
π€ android π€ | success β |
π₯ desktop π₯ | success β |
π iOS π | success β |
πΈ web πΈ | success β |
π Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 π
platform | result |
---|---|
π€ android π€ | failure β |
π₯ desktop π₯ | success β |
π iOS π | success β |
πΈ web πΈ | success β |
π Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 π
platform | result |
---|---|
π€ android π€ | success β |
π₯ desktop π₯ | success β |
π iOS π | success β |
πΈ web πΈ | success β |
Details
This PR adds Support for tax tracking when offline. (continue work from https://github.com/Expensify/App/pull/41379)
Fixed Issues
$ https://github.com/Expensify/App/issues/31673 PROPOSAL:
Tests
Expectation: Both the tax amount and tax rate fields cannot be modified - no right icon and the tax row is not interactive. Edit Expense for Distance request Go to the transaction thread and previously submitted distance expense. Expectation: Both the tax amount and tax rate fields cannot be modified - no right icon and the tax row is not interactive.
Offline tests
Expectation: Both the tax amount and tax rate fields cannot be modified - no right icon and the tax row is not interactive. Edit Expense for Distance request Go to the transaction thread and previously submitted distance expense. Expectation: Both the tax amount and tax rate fields cannot be modified - no right icon and the tax row is not interactive.
QA Steps
Expectation: Both the tax amount and tax rate fields cannot be modified - no right icon and the tax row is not interactive. Edit Expense for Distance request Go to the transaction thread and previously submitted distance expense. Expectation: Both the tax amount and tax rate fields cannot be modified - no right icon and the tax row is not interactive.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
https://github.com/Expensify/App/assets/28352309/f1f98fbf-51d2-471a-919b-8975a97eb1f4Android: mWeb Chrome
https://github.com/Expensify/App/assets/28352309/cc07f485-f52b-48f9-8ed3-2eda4c540227iOS: Native
https://github.com/Expensify/App/assets/28352309/06ee3c5e-48c2-4b91-b657-ffc731e5b355iOS: mWeb Safari
https://github.com/Expensify/App/assets/28352309/30d941ab-7b5b-4fbe-8219-40940538bf66MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/28352309/eba3f22f-ecce-425d-8eb7-d0f7b7bccbaeMacOS: Desktop
https://github.com/Expensify/App/assets/28352309/e7b1337c-8bd4-4faa-aac9-2d24de6ae201