-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Mention - User profile shows the old UI when clicking on user mention after sending it #43131
Comments
Triggered auto assignment to @tgolen ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@tgolen 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 |
We think that this bug might be related to #vip-vsp |
I'm pretty sure this problem comes from the frontend. |
Job added to Upwork: https://www.upwork.com/jobs/~010d3f9640b9f8d604 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention - User profile shows the old UI when clicking on user mention after sending it What is the root cause of that problem?In #42188, this scenario was missed (when accountId is not available and Below navigation route is wrong:
Why does this happen only initially? This is because Navigation to DetailsPage leads to the old UI being shown. Once we have the accountId, Note: Even if we fix this issue, we'll still have another one. If the accountId is not available when the click on user-mention is done, then it will show the profile as "Hidden" and user needs to go back and click again when the data becomes available. What changes do you think we should make in order to solve the problem?Change this to use
This will ensure that we use the same ProfilePage even when we don't have the accountId initially. I also see How to fix the "Hidden" issue? Update the route:
Pass the mentionDisplayText as login and accountId as undefined here:
Add this condition at this place:
Screen.Recording.2024-06-06.at.1.48.33.AM.mov |
As this is a deploy blocker and hourly issue, Reviewing the above proposal now 🟢 |
@allgandalf pls wait, I have a proposal in few mns |
@ShridharGoel , here is some feedback on your proposal: About RCA:
About Solution:
Screen.Recording.2024-06-05.at.11.18.54.PM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.User mention opens in different UIs What is the root cause of that problem?This is not a deploy blocker, it's the same behavior on production too. After this PR #42188 When we create a new message with a
App/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.tsx Lines 59 to 64 in 263e2e4
App/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.tsx Lines 65 to 72 in 263e2e4
When we click on the rendered comment of the mentioned user, before the API turns the response and we still have the optimistic data, the action will be opening the After we receive the new value from API, the action will call the What changes do you think we should make in order to solve the problem?Solution 1: update the design of the
|
const commentText = getParsedComment(text ?? '', {shouldEscapeText, reportID}); |
We can do this by adding a new utility to include accountID
attribute or update expensify-common for that
What alternative solutions did you explore?
@allgandalf pls check my proposal too. Thank you |
@dragnoir , your RCA is
This is not what the expected result is, we should be able to visit the Profile page from the first time itself and not update the
This solution makes sense to me, but can you share/add more details in the solution how that is going to be done? or a test branch ❕ |
@allgandalf thank you for your review, pls allow me a few hours and I will submit a test branch. |
@dragnoir yeah sure, but please be quick this is a deploy blocker, also test branch is not absolutely necessary, you can update the existing solution with some more details for me to understand your approach, cause
This doesn't really help understand the proper approach which is going to be used during PR :) thanks |
ProposalUpdated to include additional details. |
@allgandalf Can you check my updated proposal? |
This new UI is on staging only, so it's not the same behavior on production. I'm on the fence about whether or not this is a true blocker or not. Discussing in slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1717612587165159?thread_ts=1717611817.164829&cid=C01GTK53T8Q |
I think the profile page shows an account as hidden if it is opened as soon as it is mentioned and Onyx doesn't have any details about it. If you open it after few seconds then it works fine. This should be expected and not an issue caused by my solution. Thoughts? |
@ShridharGoel , the expected results are:
So i guess it isn't good on I guess @tgolen you would also agree with this observation |
Hey I’m only for a moment, but #42385 might solve this issue. |
@allgandalf We still need to solve the hidden issue. I have updated my proposal. |
@ShridharGoel The PR #42385 also changes the navigation logic for Profile and code in Lets wait for the next steps here from @roryabraham @tgolen , how should we proceed here, please see comment |
I think that PR would take time to review since it's a bigger change. So, as a quick-fix for this blocker - can we consider the changes in my proposal and then #42385 can be continued? |
@ShridharGoel you copied my RCA and you changed your proposal based on my comments. |
@allgandalf I tested PR #42385 and this issue is totally solved. We can HOLD or close this one, I think. |
Hey, I didn't have time yesterday to investigate deeply. I think that this behavior is expected. In the design doc, we planned two separate issues for updating the This is why the mentions shows old profile UI (because in our codebase it was actually a different component). |
I'm removing the blocker label as this is an edge case with proposals in place, is potentially expected, and so we can speed up QA. More context here (internal comment) |
@tgolen, @allgandalf Eep! 4 days overdue now. Issues have feelings too... |
Can the QA retest this ? This was fixed in another PR according to #43131 (comment) |
I have asked QA to retest 👍 |
Thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.79-7
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
In Step 4, user profile from mention should show the new UI
Actual Result:
In Step 4, user profile from mention should show the old UI
It shows the new UI after a while when reopening the user profile (Step 7)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6502932_1717601114418.bandicam_2024-06-05_23-20-22-036.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allgandalfThe text was updated successfully, but these errors were encountered: