-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Update LHN to display transaction level actions for one-transaction reports #42005
Conversation
@Ollyws friendly bump here |
Aplologies, completely missed this one. Will review today. |
🤔 good catch @Ollyws, that's super weird. I'll look into it today! |
🤔 I can't seem to reproduce the issue you're experiencing @Ollyws Android/iOS Screen Recordings
Screen.Recording.2024-05-15.at.11.56.17.mov
Screen.Recording.2024-05-15.at.11.58.05.mov
Simulator.Screen.Recording.-.iPhone.15.-.2024-05-15.at.12.10.05.mp4
Simulator.Screen.Recording.-.iPhone.15.-.2024-05-15.at.12.17.51.mp4 |
That's strange as I could reproduce on more than one platform, I'll look into wether it's my setup causing the issue somehow. |
src/libs/OptionsListUtils.ts
Outdated
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED && | ||
reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, | ||
); | ||
visibleReportActionItems[reportID] = reportActionsForDisplay[reportActionsForDisplay.length - 1]; |
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.
I don't think it's a problem on my side, as reverting this back to visibleReportActionItems[reportID] = reportActionsForDisplay[0];
seems to fix the problem.
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.
Weird, it's bizarre that we'd have different orders for web/desktop and ios/android
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.
Seems to work on web + mobile with the original index now, so we can go with that instead of using [reportActionsForDisplay.length - 1]
@Ollyws updated once more! |
@Ollyws friendly bump on the re-review 🙇 |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4MacOS: Desktop06_MacOS_Desktop.mp4 |
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.
LGTM.
@cristipaval 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] |
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.4.76-0 🚀
|
PR fails with existing bug #39450 not fixed in mweb. |
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.76-7 🚀
|
Details
Fixes the LHN for one transaction reports so we display the latest action in the LHN regardless of whether or not it occurred on the report or transaction level
Fixed Issues
$ #39450
Tests
Offline tests
Repeat online steps from step 3 onwards.
Screen.Recording.2024-05-10.at.14.13.55.mov
QA Steps
Same as test steps
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
Screen.Recording.2024-05-14.at.14.50.24.mov
Android: mWeb Chrome
android.mweb.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.-.2024-05-14.at.18.07.09.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.-.2024-05-14.at.18.11.38.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-05-10.at.14.12.31.mov
MacOS: Desktop
Screen.Recording.2024-05-10.at.14.29.44.mov