-
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
Enable/disable per diem rates #51232
Conversation
@Gonals I am almost done with this PR. |
Can you please share the extract of the design doc? |
Shared |
@c3024 Please proceed with the checklist. |
@shawnborton @Gonals Is the learn more link correct? |
cc @bfitzexpensify - what's the correct help article URL for this? |
Do we have one ready for NewDot though? Also, where is this link shown exactly @shubham1206agra ? |
Sorry, completely missed the ND portion, need to have my coffee. We don't have ND help docs up yet - opened https://github.com/Expensify/Expensify/issues/442420 to get them sorted, should take me a day or two. We don't need that to be a blocker for this, I can open a PR to update the link once the help docs are ready. |
This PR has other things apart from the link. I think this PR should not be closed. |
In OldDot, in PerDiem section. |
@c3024 Can you finish the review now? |
title: 'Per diem', | ||
description: | ||
'Per diem is a great way to keep your daily costs compliant and predictable whenever your employees travel. Enjoy features like custom rates, default categories, and more granular details like destinations and subrates.', | ||
onlyAvailableOnPlan: 'Per diem are only available on the Control plan, starting at ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onlyAvailableOnPlan: 'Per diem are only available on the Control plan, starting at ', | |
onlyAvailableOnPlan: 'Per diem is only available on the Control plan, starting at ', |
NIT: Google says plural for per diem is per diems.
So, it might need to be confirmed if this should be "Per diems are" or "Per diem is" or retain as it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the enabling/disabling and view of the per diem page. LGTM!
Neat! Let's merge! We can update the help later. This is behind a beta, anyways. @shubham1206agra, send the PRs with the rest of the functionality (importing/exporting/setting default category) my way when they are ready. I'll test with the backend and deploy the backend PRs accordingly |
✋ 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/Gonals in version: 9.0.59-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.59-3 🚀
|
@@ -76,9 +80,12 @@ function WorkspaceUpgradePage({route}: WorkspaceUpgradePageProps) { | |||
case CONST.UPGRADE_FEATURE_INTRO_MAPPING.companyCards.id: | |||
Policy.enableCompanyCards(policyID, true); | |||
break; | |||
case CONST.UPGRADE_FEATURE_INTRO_MAPPING.perDiem.id: | |||
PerDiem.enablePerDiem(policyID, true, perDiemCustomUnit?.customUnitID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming from #52201.
enablePerDiem
needs a parameter to disable redirection, because there is a link on this page to view the subscription page, and when we tap it, this function will also be called. In such cases, we need to disable redirection. :)
Details
Fixed Issues
$ #50862
Tests
Pre-requisite
Make sure you are on
newDotPerDiem
beta before testing this feature.Offline tests
Same as Tests
QA Steps
Same as Tests
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
Android: mWeb Chrome
Screen.Recording.2024-10-31.at.8.36.18.AM.mov
iOS: Native
Screen.Recording.2024-10-31.at.10.15.02.AM.mov
iOS: mWeb Safari
Screen.Recording.2024-10-30.at.10.01.55.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-30.at.9.29.46.PM.mov
MacOS: Desktop
Screen.Recording.2024-10-31.at.9.57.50.AM.mov