-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: remove markdown symbol in report header and report details page #59328
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
Conversation
Asked on slack whether we should fix the Money request preview content. |
We got confirmation, I'll update the PR soon. Also I will implement the fix for #59733 in this PR as well. |
@suneox I updated with the fix for:
![]()
![]()
![]() |
Added fix for #59793 ![]() |
Thanks for the update. I'll review this PR today |
@daledah I think we should be to confirm expected behavior in case we have a multiple lines, due to on current latest main just only show 1 line and i've put the confirmation at this comment |
Reviewer Checklist
Screenshots/Videos |
@suneox Could you provide the description that causes this bug? I tried with very long text link and can't reproduce Screen.Recording.2025-04-19.at.22.18.27.mov |
Not sure what happened to the Changed files ESLint check. |
I'm using md text multiple lines [Link](https://github.com/Expensify/App)
*Bold*
`Quote`
#58553
 But it looks like doesn't happen after you change to single line for review dupplicates flow |
@suneox I updated. |
@daledah Although this issue has been fixed but currently, the developer experience on this PR is quite poor due to the eslint fix. Since the current documentation around canBeMissing is still unclear and we don’t have any concrete guidance or required actions to handle missing data so I suggest we set Screen.Recording.2025-04-21.at.22.18.41.mp4 |
Must've been caused by the latest commit that I pushed to fix the default ID rule. I'll do a proper check and update soon. |
Ok. I also left a comment and waiting for feedback from the author of the new eslint rule regarding the approach to handle legacy features vs new features. |
I updated. |
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.
The change set LGTM. The alert issue was caused because we need to update canBeMissing as per the documentation. I think it's fine
Screen.Recording.2025-04-23.at.22.44.06.mp4
src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Show resolved
Hide resolved
src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Show resolved
Hide resolved
src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Outdated
Show resolved
Hide resolved
const [reviewDuplicates] = useOnyx(ONYXKEYS.REVIEW_DUPLICATES); | ||
const compareResult = TransactionUtils.compareDuplicateTransactionFields(transactionID, reviewDuplicates?.reportID ?? '-1'); | ||
const transactionID = getTransactionID(route.params.threadReportID); | ||
const [reviewDuplicates] = useOnyx(ONYXKEYS.REVIEW_DUPLICATES, {canBeMissing: false}); |
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.
Given this key is set in line 46, I think this can be missing no?
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.
reviewDuplicates
is first created here:
App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Line 336 in 069891a
setReviewDuplicatesKey({...comparisonResult.keep, duplicates, transactionID: transaction?.transactionID, reportID: transaction?.reportID}); |
So in ReviewDescription
it's guaranteed to exist.
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.1.33-0 🚀
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.1.35-1 🚀
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.1.36-3 🚀
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.1.37-1 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.37-3 🚀
|
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.
Hey I think this PR is generating a canBeMissing
error related to changes in this file
Explanation of Change
Fixed Issues
$ #59733
$ #59793
$ #58553
PROPOSAL: #58553 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
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
Screen.Recording.2025-03-31.at.11.29.25.mov
Android: mWeb Chrome
Screen.Recording.2025-03-31.at.11.31.48.mov
iOS: Native
Screen.Recording.2025-03-31.at.11.32.34.mov
iOS: mWeb Safari
Screen.Recording.2025-03-31.at.11.33.12.mov
MacOS: Chrome / Safari
Screen.Recording.2025-03-31.at.11.33.29.mov
MacOS: Desktop
Screen.Recording.2025-03-31.at.11.34.02.mov