-
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
[$500] Chat-Email id is not shown as link and directed to profile page. #33044
Comments
Triggered auto assignment to @johncschuster ( |
Job added to Upwork: https://www.upwork.com/jobs/~010c805ba2ca605e54 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.For the optimistic account, the ReportWelcomeText shows the email as text, not a link. What is the root cause of that problem?The optimistic account's data is not full, therefore showing a Profile page was leading to a broken behavior, so it was decided to render only a non-clickable text in offline mode: App/src/components/ReportWelcomeText.js Lines 113 to 123 in d521dd6
However, there is another page – What changes do you think we should make in order to solve the problem?Instead of showing just text, we should show a clickable <UserDetailsTooltip accountID={accountID}>
<Text
style={[styles.textStrong]}
onPress={() => Navigation.navigate(ReportUtils.isOptimisticPersonalDetail(accountID) ? ROUTES.DETAILS.getRoute(displayName) : ROUTES.PROFILE.getRoute(accountID))}
suppressHighlighting
>
{displayName}
</Text>
</UserDetailsTooltip> Result (both optimistic & full account):Screen.Recording.2023-12-14.at.10.53.44-compressed.mp4What alternative solutions did you explore? (Optional) |
@paultsimura's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
ProposalPlease re-state the problem that we are trying to solve in this issue.If we start a new chat while offline, we can't open their profile page. What is the root cause of that problem?We intentionally disable it if the user is optimistic-created in this PR. The reason we do that is explained in the selected proposal
But this is different now. BE will always return the What changes do you think we should make in order to solve the problem?Allow the user to navigate to the profile page even though it's an optimistic personal detail/user. (we need to enable it on other pages where it's disabled in the PR #23802) |
Profile page is the replacement for details page, so I think we shouldn't use details page (relevant PR #20144) |
@bernhardoj I don't think we should apply your solution. Screen.Recording.2023-12-14.at.4.10.07.PM.mov |
Also please check this comment in the PR you linked:
|
Yes, it's just temporary and will be removed #20070 (comment)
I see. It's indeed weird. Maybe we should just keep it disabled. |
I agree with @bernhardoj that we shouldn't have any further usage of @situchan I think below is the right pattern to use ProposalPlease re-state the problem that we are trying to solve in this issue.Tapping on email id, displays it as text and not link. Email id is not shown as link and directed to profile page. What is the root cause of that problem?If personal details is optimistic, we only show the unclickable text here I think this is not the right pattern since it looks broken, the user doesn't understand why it's not clickable. In these cases we usually allow opening the page normally but will show loading indicator. Try opening a profile page (eg. https://staging.new.expensify.com/a/12694957) by deep link in offline mode, you'll see loading indicator until you come online. When we open a thread that doesn't exist in Onyx yet, in offline mode, it also will show loading indicator What changes do you think we should make in order to solve the problem?Allow navigation to profile page if it's optimistic personal details, but in the profile page, show loading indicator to indicate that the user needs to come online to load the data.
We need to fix this in a couple of places What alternative solutions did you explore? (Optional)NA |
Yeah I think I'd also prefer not to add links to the details page if it's being removed soon - thank you for the context! @situchan can you take another look at the new proposals? I don't really love having a forever loading state (assuming a user is not returning online anytime soon) but if that matches what happens already with profile pages that might be okay. |
I think we can just close. No one proposed right solution |
@situchan what do you think of my proposal? It will make it consistent with the behavior when the user goes to the profile page directly via deep link (show infinite loader until coming back online) which is also a widely used pattern in the app. Currently it looks broken which is not great UX. cc @dangrous |
I am not sure it's worth but not against it. |
@johncschuster what do you think? I think the loader is the best option here (vs. doing nothing, or redirecting), but would love to hear your thoughts! |
@dangrous, @johncschuster, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@dangrous, @johncschuster, @situchan Eep! 4 days overdue now. Issues have feelings too... |
@johncschuster is out for the holidays, I think we can close this for now as low priority and if we decide to bring it back at some point we can look at these proposals! |
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: 1.4.12
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
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Go to https://staging.new.expensify.com/
Tap fab
Tap start chat
Enter a new contact eg: y@c.com
Select the contact
Tap on the email id displayed in start of page
Note it directs to profile page
Navigate back to LHN
Tap profile icon --- preferences
Toggle on forced offline
Repeat step 2-- step6
Expected Result:
Email id must be shown as link and directed to profile page.
Actual Result:
Tapping on email id, displays it as text and not link. Email id is not shown as link and directed to profile page.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6312311_1702507076813.display_not_as_link.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: