Skip to content
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

[HOLD for payment 2024-08-14] [$250] When a room or report is renamed, the report action shows up using an old centered message style #44620

Closed
1 of 6 tasks
m-natarajan opened this issue Jun 28, 2024 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Jun 28, 2024

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.3-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1719556190081699

Action Performed:

  1. Create a report in old dot and rename the report
  2. Login to new dot and see report details
  3. Create a room in NewDot and rename the room
  4. Observe the centered report action.

Expected Result:

The RENAMED report action (ref) should use the newer system message style whereby the message comes from the user that took the action in grey font.

The format should be something like:

Tom Rhys Jones
renamed this room from #roomname to #newroomname

Given that, we also need to update the copy of the message slightly such that the actor is not included in the copy (i.e "You" in the screenshots) as the message is coming from the person that took the action.

Actual Result:

Renaming reports or rooms uses an old report action style. It looks like a normal chat message and it's centered on the report/chat.

Workaround:

N/A

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
CleanShot 2024-06-28 at 08 28 14@2x
Snip - (7) New Expensify - Google Chrome

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0191d8611609765fe7
  • Upwork Job ID: 1806689197252632356
  • Last Price Increase: 2024-07-05
  • Automatic offers:
    • abdulrahuman5196 | Reviewer | 103146464
    • neonbhai | Contributor | 103146466
Issue OwnerCurrent Issue Owner: @JmillsExpensify
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to @JmillsExpensify (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.

@shawnborton shawnborton changed the title When a report is renamed in OldDot, the report action shows up as a centered message in NewDot When a room or report is renamed, the report action shows up using an old centered message style Jun 28, 2024
@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Jun 28, 2024
@melvin-bot melvin-bot bot changed the title When a room or report is renamed, the report action shows up using an old centered message style [$250] When a room or report is renamed, the report action shows up using an old centered message style Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0191d8611609765fe7

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (External)

@neonbhai

This comment was marked as outdated.

@shawnborton
Copy link
Contributor

Ah apologies, to clarify, we do not want to use this component, we want to use our standard system message component and get rid of the current component being used.

@neonbhai
Copy link
Contributor

neonbhai commented Jun 28, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

What is the root cause of that problem?

The RenameAction component uses the center aligned text styles:

<Text style={[styles.pv3, styles.ph5, styles.textAlignCenter, styles.textLabelSupporting]}>

What changes do you think we should make in order to solve the problem?

We will use ReportActionItemBasicMessage to render these messages.

i.e, here:

else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.RENAMED) {
    const originalMessage = ReportActionsUtils.isRenamedAction(action) ? ReportActionsUtils.getOriginalMessage(action) : null;
    const oldName = originalMessage?.oldName ?? '';
    const newName = originalMessage?.newName ?? '';
    const message = translate('newRoomPage.renamedRoomAction', {oldName, newName});
    children = <ReportActionItemBasicMessage message={message} />;
}

Result:

Screen.Recording.2024-06-28.at.8.01.47.PM.mov

Copy link

melvin-bot bot commented Jul 1, 2024

@JmillsExpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@abdulrahuman5196
Copy link
Contributor

Hi, Will check on this today.

@melvin-bot melvin-bot bot removed the Overdue label Jul 2, 2024
Copy link

melvin-bot bot commented Jul 5, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Jul 5, 2024
Copy link

melvin-bot bot commented Jul 5, 2024

@JmillsExpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@abdulrahuman5196
Copy link
Contributor

@neonbhai 's proposal here #44620 (comment) looks good and works well.

🎀 👀 🎀
C+ Reviewed

Copy link

melvin-bot bot commented Jul 8, 2024

Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented Jul 12, 2024

@JmillsExpensify @abdulrahuman5196 @roryabraham this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

@JmillsExpensify, @abdulrahuman5196, @roryabraham Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 21, 2024
Copy link

melvin-bot bot commented Aug 6, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@BhuvaneshPatil
Copy link
Contributor

@roryabraham @shawnborton Does this also need to be changed?
Screenshot 2024-08-07 at 5 03 56 PM

@shawnborton
Copy link
Contributor

Yes, that should match whatever is shown in the chat. Out of curiosity, why wouldn't it match?

@BhuvaneshPatil
Copy link
Contributor

Yes, that was missed in code changes

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 7, 2024
@melvin-bot melvin-bot bot changed the title [$250] When a room or report is renamed, the report action shows up using an old centered message style [HOLD for payment 2024-08-14] [$250] When a room or report is renamed, the report action shows up using an old centered message style Aug 7, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Aug 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-08-14. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Aug 7, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@abdulrahuman5196] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@abdulrahuman5196
Copy link
Contributor

The PR that introduced the bug has been identified. Link to the PR:
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

Not regression. New implementation

Determine if we should create a regression test for this bug.

Yes.

If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

  1. Create a room and rename the room
  2. Verify the rename action message can be seen correctly as per the new UX

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 14, 2024
@trjExpensify
Copy link
Contributor

#44620 (comment) - was this considered a regression or follow-up?

@neonbhai
Copy link
Contributor

#47342 was a follow-up. LHN message was different from chat before this PR and copy to clipboard functionality for renamed action was altogether missing from ContextMenuActions. The follow up added these to bring renamed action in line with other messages

@abdulrahuman5196
Copy link
Contributor

#44620 (comment) - was this considered a regression or follow-up?

@trjExpensify This was not a regression IMO. Even before this PR the same was present. And the issue was tackled in a different PR unifying the message strings. While in this PR we had updated the UX to match with expected UX while the message strings was not much changed.

For reference - https://expensify.slack.com/archives/C01GTK53T8Q/p1722946998491139, #44620 (comment)

@melvin-bot melvin-bot bot added the Overdue label Aug 16, 2024
@trjExpensify
Copy link
Contributor

Cool, sounds good. So, @JmillsExpensify payment summary as follows:

@JmillsExpensify
Copy link

Catching up from OOO. I'll issue payments now.

@melvin-bot melvin-bot bot removed the Overdue label Aug 19, 2024
@JmillsExpensify
Copy link

$250 approved for @abdulrahuman5196

@JmillsExpensify
Copy link

Contracts paid out. I'm not going to create a regression test since it's a one-time visual change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Status: Done
Development

No branches or pull requests

8 participants