Open IuliiaHerets opened 2 days ago
Triggered auto assignment to @muttmuure (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
We think that this bug might be related to #wave-control
@muttmuure FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
The system message for updating "Require receipts over" is not clear. It shows "updated the category "Benefits" by adding a of 0".
We don't have a case for this type of message then it displays the message text by default which is the unclear system message
We can create a new translation key and a new util to get the message for this system message. The message can be confirmed by the design team. I think the translation key can be built based on categoryName
, newValue
, updatedField
from originalMessage
of the action like updated the category "${categoryName}" by adding ${updatedField} with the value ${newValue}
(here is an example, the final message can be discussed).
else if (ReportActionsUtils.isActionOfType(action, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CATEGORIES)) {
children = <ReportActionItemBasicMessage message={ReportActionsUtils.getPolicyChangeLogUpdateCategoryMessage(action)} />;
}
Then we can add a case for the action here and use the util above the get the message
📣 @odoyhaha! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Category rules - System message for updating "Require receipts over" is not clear
We are not specifically handling the case for POLICYCHANGELOG_UPDATE_CATEGORY
report action types in ReportActionItem we are displaying the default message fragments which contains unclear message as indicated in OP
We should create a util function that returns the correct message for POLICYCHANGELOG_UPDATE_CATEGORY case and the message content can be decided by the design team. But basically, we can use categoryName
, updatedField
, newValue
, oldValue
currency
of the originalMessage
as a param to a new copy we will create and construct the message similar to sth like updated the category {categoryName} by adding a {updatedField} of {newValue,currency}
.
Now we need to use this util to get the message for POLICYCHANGELOG_UPDATE_CATEGORY report actions in this places
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.37-3 Reproducible in staging?: Y Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com Issue reported by:
Action Performed:
Precondition:
Expected Result:
The system message for updating "Require receipts over" will be clear.
Actual Result:
The system message for updating "Require receipts over" is not clear. It shows "updated the category "Benefits" by adding a of 0".
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/d778069c-21a4-43e5-bbb9-65b8237d0d9b
View all open jobs on GitHub