fix logic of single transaction report #62936
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation of Change
The main reason for this issue was that we didn’t distinguish between the regular view and the single transaction view. The single transaction view displays not only messages from the thread but also from the entire report, which is why the timestamp of the last read report action was missing. Fixing the chat bubble behavior to recognize whether it’s a single transaction or not helped resolve the problem.
Fixed Issues
$ #62579
PROPOSAL:
Tests
On desktop run using a narrow layout
Chat bubble should be gray
Offline tests
Unnesesary
QA Steps
Same as test
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)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
Uploading Screen Recording 2025-05-28 at 15.52.45.mov…
Android: mWeb Chrome
Screen.Recording.2025-05-28.at.15.49.37.mov
iOS: Native
video.chat.bubble.mp4
iOS: mWeb Safari
Screen.Recording.2025-05-28.at.16.10.08.mov
MacOS: Chrome / Safari
Screen.Recording.2025-05-28.at.14.31.41.mov
MacOS: Desktop
Screen.Recording.2025-05-28.at.15.03.55.mov