fix: save IOU request description in html#44523
Conversation
Signed-off-by: dominictb <tb-dominic@outlook.com>
…/43403-html-desc
|
Should be reviewed by @mkhutornyi |
|
@dominictb @mkhutornyi is OOO so I'll be reviewing this. |
There was a problem hiding this comment.
@dominictb Please fix the eslint errors for non-existent IDs. See https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#default-value-for-inexistent-IDs for more details.
Additionally, please merge with the latest main branch.
|
@dominictb Please merge latest main. Thanks. |
|
@akinwale I already merged it. However let's pause a bit because I observed several issues and need to test them carefully. I'll notify you when it's done. My ETA is several hours. Thanks. |
|
Discussing the problem while creating money requests here #43403 (comment). |
|
@dominictb Can you check if the E/Web PR has been merged? |
|
@dominictb Just following up to see if there are any updates here. The last set of changes have been deployed based on this comment. Thanks. |
|
on my list today |
|
Updating & testing FE code for the split, track & distance flows. |
|
The BE seems too slow for me, especially the |
|
@akinwale I've done implemented all the flows. Ready for review. These are the actions changed:
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: Native44523-ios-native.mp4iOS: mWeb Safari44523-ios-safari.mp4MacOS: Chrome / Safari44523-web.mp4MacOS: Desktop44523-desktop.mp4 |
mountiny
left a comment
There was a problem hiding this comment.
Looks good, @dominictb for the QA team, could you please update the PR body with all the flows affected here, I know its a lot but we should ensure QA will test them so we do not miss anything
| amount: transaction?.amount ?? 0, | ||
| currency: transaction?.currency ?? '', | ||
| comment: transaction?.comment?.comment?.trim() ?? '', | ||
| comment: parsedComment, |
There was a problem hiding this comment.
We should not need the comment parameter as only the description will be used. We should clean this up in a follow up @dominictb @akinwale
|
✋ 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/mountiny in version: 9.1.11-1 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|
| const currentDescriptionInMarkdown = Parser.htmlToMarkdown( | ||
| isEditingSplitBill && !lodashIsEmpty(splitDraftTransaction) ? splitDraftTransaction?.comment?.comment ?? '' : transaction?.comment?.comment ?? '', | ||
| ); | ||
| const descriptionRef = useRef(currentDescriptionInMarkdown); |
There was a problem hiding this comment.
The case of transaction draft was not handled in the initial implementation.
Issue: #59986
Title: Expense-In confirmation page, description saved as <> is not shown on reopening
| sessionAccountID: number, | ||
| sessionEmail?: string, | ||
| ) { | ||
| const parsedComment = getParsedComment(updatedTransaction?.comment?.comment ?? ''); |
There was a problem hiding this comment.
Coming from: #65889, we need to use Parser.htmlToMarkdown before parsing the comment
Details
fix: save IOU request description in html
Fixed Issues
$ #43403
PROPOSAL: #43403 (comment)
Tests
Expected: No system message for description edit will show up because no edit is made to the description.
Repeat all the above steps with create, categorize, share track expenses; create distance requests; split bills; send invoices.
Offline tests
QA Steps
Expected: No system message for description edit will show up because no edit is made to the description.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Expense:
Screen.Recording.2025-01-15.at.18.32.21-compressed.mov
Distance request:
Screen.Recording.2025-03-06.at.02.26.59.mov
Invoice:
Screen.Recording.2025-03-07.at.02.34.48-compressed.mov
MacOS: Desktop
Screen.Recording.2025-01-15.at.18.59.48-compressed.mov