-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Handle mentions in the description #82325
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
base: main
Are you sure you want to change the base?
Conversation
|
@abzokhattab 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] |
|
@bernhardoj 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-02-13.at.3.47.33.AM.mov |
Code Review SummaryI've completed a review of this PR. The implementation is mostly solid with one documentation issue to address: Issue FoundDocumentation Clarity (CONSISTENCY-2) - The JSDoc for the new /** The value that the description was changed to */
comment?: string;
/** The value that the description was changed to */
description?: string;This creates confusion about the purpose of each field. The documentation should clarify their relationship. Consider: /** The description value as stored by the backend (displayed as 'description' in UI) */
comment?: string;
/** The value that the description was changed to */
description?: string;What's Working Well✅ The markdown conversion logic correctly handles mentions using The implementation effectively addresses the requirement to display mentions in the description field. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
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.
Looks good
- Please address #82325 (comment)
Verify that ...is missing in Tests step- Be good to add unit tests for
getPolicyRulesModifiedMessagefunction
trjExpensify
left a comment
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.
No, no. I think you should update the description to:
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. *
Explanation of Change
Converts the
MODIFIEDEXPENSEdescription field to markdown so that we can properly display the field when it includes mentions.Fixed Issues
$ #82245
Tests
Offline tests
N/A
QA Steps
Same as tests
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))npm run compress-svg)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