Add travel updates as new ReportActions#62776
Conversation
|
@shubham1206agra 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] |
|
Despite waiting for this backend issue to be merged, @shubham1206agra maybe you can start the review so the whole process goes faster? 😊 |
|
@zfurtak Resolve conflicts please |
0291eeb to
129dd84
Compare
|
PR is ready for a review 😊 |
|
@blimpich Is it possible for you to create a dummy trip with all report action present. As some of the actions seems to be impossible for me to trigger. |
Reviewer Checklist
Screenshots/Videos |
blimpich
left a comment
There was a problem hiding this comment.
Looks good to me. Waiting on Spanish confirmation here: https://expensify.slack.com/archives/C01GTK53T8Q/p1749214502822449
Once we have that we can merge
|
✋ 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/blimpich in version: 9.1.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
| } else if (isActionOfType(action, CONST.REPORT.ACTIONS.TYPE.TRAVEL_UPDATE)) { | ||
| children = ( | ||
| <ReportActionItemBasicMessage message=""> | ||
| <RenderHTML html={`<comment><muted-text>${getTravelUpdateMessage(action, datetimeToCalendarTime)}</muted-text></comment>`} /> |
There was a problem hiding this comment.
Coming from #69077 where there was a discrepancy between the travel time shown in the Concierge message compared to the trip summary box. The issue is that datetimeToCalendarTime applies timezone conversion which we don't want here as the backend already returns travel times in local time.






Explanation of Change
Fixed Issues
$ #60380
PROPOSAL:
Tests
To test this feature you need to have travel configured.
View tripExamples:


Offline tests
QA Steps
As above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop