-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Web - The last message in LHN has a colon character (:) different from the last message in the task report #27671
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01868e84ba635cc94a |
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @strepanier03 ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
Proposal by: @namhihi237 ProposalPlease re-state the problem that we are trying to solve in this issue.The last message shown in LHN and the task report same, For now, the last message LHN includes a colon (:) but the message on the report is not a colon What is the root cause of that problem?We use App/src/components/ReportActionItem/TaskAction.js Lines 58 to 60 in 76c1559
And here is the logic showing the last message on the LHN Lines 310 to 313 in 76c1559
Can see it includes a colon (:). What changes do you think we should make in order to solve the problem?We should create a function to return the message action and use both place What alternative solutions did you explore? (Optional)And simple we can remove (:) in here |
ProposalPlease re-state the problem that we are trying to solve in this issue
What is the root cause of that problem?
App/src/components/ReportActionItem/TaskAction.js Lines 58 to 60 in 76c1559
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
Double assignment, taking myself off. This is happening quite often lately. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The last message in LHN has a colon character (:) different from the last message in the task report What is the root cause of that problem?Lines 923 to 943 in fed1967
This is logic to get the message in the report and the content when clicking Copy to clipboard. We don't add : between taskStatusText and reportName What changes do you think we should make in order to solve the problem?Line 943 in fed1967
We should add : between taskStatusText and reportName What alternative solutions did you explore? (Optional) |
@narefyev91 It seems @namhihi237's proposal is outdated. we can't do that now |
Proposal from @namhihi237 looks good to me - #27671 (comment) |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Code changes were done after @namhihi237 posted proposal - in any case area and root case were identified correctly from his side - and any code changes should be discussed during PR review |
It seems that the utils function in this case isn't suitable even before the new change. My proposal is simpler and easier to implement. |
Some one already did this logic inside Task.getTaskReportActionMessage - which is now can be used in any place to correctly build |
@narefyev91 yeah, that's my ideal, if we want simple we can use my alternative solutions |
|
I think : make for better UX and currently the BE also return : in that message. So if we come up with your alternative solution we need to change many places (both in BE) |
@dukenv0307 We should use getTaskReportActionMessage in SidebarUtils for this lines |
@narefyev91 If we use getTaskReportActionMessage in SidebarUtils, we will make a logic change in case actionName is TASKCANCELLED |
Hmm sorry not sure if i get you right - it will changed like this |
@narefyev91 Let' see getTaskReportActionMessage function Lines 923 to 943 in efacd6c
With your approach, we make 2 same conditions (check actionName 2 times) We check actionName in both reportUtils and SidebarUtils |
@dukenv0307 not see any issue in sidebar to get correct action - and base on this action get correct translation based on getTaskReportActionMessage function. In any case i think we can leave final decision for @bondydaa |
@bondydaa Summary for you: Line 943 in fed1967
and don't need to do any thing as my proposal Option 2: We still update as option 1 and use getTaskReportActionMessage function in SidebarUtils like here As I said in here If we do that we will check a condition 2 times (check actionName 2 times). If we come up with option 2, I suggest that we should do like that
Anyway I don't think @namhihi237's proposal is clear enough to come with
|
@dukenv0307 let's summarise a bit correctly:
|
Thanks for the summary @narefyev91 Just going to ping @bondydaa to confirm we're on the right track please? |
Okay so am I understanding correctly that we just need to add a I'm going to assign @namhihi237 and lets add it in whatever method that was updated but didn't have it. |
looks like this Issue & PR changed the messages completely and removed the colons all together in favor of more streamlined messaging #24601 Asked this on the PR but do we need to still do anything here then? Otherwise we can probably close this out? |
I think this is all closed out @bondydaa and we can close this. Closing! |
@zanyrenney If this issue closes will I be able to receive any payment for the raised PR? |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Last message in LHN does not have a colon character (:)
Actual Result:
The last message shown in LHN and task report are different
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70.5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-09-16.at.22.14.43.mov
Recording.4544.mp4
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694877258526769
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: