fix: Square bracket displayed in system message for unapproved expense report#49831
Conversation
|
@DylanDylann 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] |
This comment was marked as outdated.
This comment was marked as outdated.
|
@nkdengineer Your step is incorrect |
| if (ReportActionsUtils.isApprovedAction(reportAction)) { | ||
| translationKey = 'iou.approvedAmount'; | ||
| } else { | ||
| translationKey = 'report.actions.type.unapproved'; |
There was a problem hiding this comment.
Hmm, Should we add a new translation key 'iou.unapprovedAmount' with the correct translation (need to confirm again). I am not sure if we also want to use 'report.actions.type.unapproved' translation key here
There was a problem hiding this comment.
because I see in the report detail we use another translation for unapproved action
Line 1009 in 6d8e739
There was a problem hiding this comment.
@iwiznia Could you please help to confirm which translation we should use here?
There was a problem hiding this comment.
Can you give me a bit more context on what exactly is this showing?
There was a problem hiding this comment.
@iwiznia When the admin unapproves a request, a system message will display "unapproved X", I am asking the Spanish translation for this system message.
Hmm, Should we add a new translation key 'iou.unapprovedAmount' with the correct translation (need to confirm again). I am not sure if we also want to use 'report.actions.type.unapproved' translation key here because I see in the report detail we use another translation for unapproved action "unapprove: 'Desaprobar'"
There was a problem hiding this comment.
Ah ok thanks! the translation would be desaprobó
There was a problem hiding this comment.
@nkdengineer I think we should create a new translation key iou.approvedAmount
|
@nkdengineer Some left comments |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-10-11.at.20.58.01.movMacOS: DesktopScreen.Recording.2024-10-11.at.20.53.52.mov |
|
@DylanDylann i updated, please check again |
|
@iwiznia Ops, It seems both me and @nkdengineer forgot to update videos again. I will do it soon |
|
Ah ok, can you make sure to include one where this is used please? |
|
@iwiznia I updated all videos on my checklist. This is a sample on the web: Screen.Recording.2024-10-11.at.20.58.01.mov |
|
@DylanDylann I think you missed this comment? |
Yes |
Co-authored-by: DylanDylann <141406735+DylanDylann@users.noreply.github.com>
Co-authored-by: DylanDylann <141406735+DylanDylann@users.noreply.github.com>
|
@iwiznia All yours |
|
✋ 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/iwiznia in version: 9.0.49-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.49-2 🚀
|






Details
Fixed Issues
$ #49160
PROPOSAL: #49160 (comment)
Tests
Offline tests
QA Steps
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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov