Open kbecciv opened 9 months ago
Shared with expert agency https://expensify.slack.com/archives/C03UK30EA1Z/p1710810646724379
Hi, Im Piotr from Callstack, I will start investigating this issue
Update: found the source of the issue, now Im working on suitable solution that is not too big of walkoround
@Piotrfj Is this related to live markdown?
What's the latest @Piotrfj ?
@shubham1206agra from what I see it's just native text wrapping behavior. There is no setting of that attribute that would change it exactly to what we want. Been trying to look for alternative solution but no luck for now. Right now I'm working on the second part of the issue and will consult the first one with others to find out if I'm missing something or not. That doesn't seem like to be connected to the live markdown though.
Update: I have tested if the EmailUtils (mentioned here: https://github.com/Expensify/App/issues/35725#issuecomment-1991004933) are running, but they are not and it looks like all the breaking is due to android native behavior.
I have a question about the second part of the issue (mentioned here: https://github.com/Expensify/App/issues/35725#issuecomment-1930735370). I not sure if current behavior is a bug to be honest, I have followed the path of the values and everything seems to work as intended. Do I understand correctly that we would want to change the behavior of what is filled in the input after choosing something from the mention tooltip to a nickname if such is available?
By "nickname" do you mean "Display Name"? @Piotrfj ?
@MitchExpensify yes
Do I understand correctly that we would want to change the behavior of what is filled in the input after choosing something from the mention tooltip to a nickname if such is available?
I think we always want to show the display name, is that what you are wondering?
@MitchExpensify, @Piotrfj, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Current status for handing over the issue:
For the text breaking:
I've checked many settings but none of them worked as desired. I've found a function called prefixMailSeparatorsWithBreakOpportunities
in EmailUtils.ts file, but it does not seem to run in this case. My current thought is that the issue is due to some native behavior of android and I could not get to the source of it, so I don't know if it's fixable.
For the display name part: In file SuggestionMention.tsx at line 96
for both arguments login
field is passed, as first argument the text
field should be passed.
However after doing so the mention is no longer clickable and I haven't been able to find solution for that.
If our best thesis is that this is caused by native Andoird behavior I am tempted to close this. Its a minor issue that I'm not sure is worth digging deeper on at this point
Thoughts @Piotrfj ?
@MitchExpensify Piotr was reassigned to another project in Callstack. Someone from our team will take this issue over and will see if it's worth fixing
Ok got it!
@MitchExpensify, @shubham1206agra Huh... This is 4 days overdue. Who can take care of this?
@koko57 any update on a new set of eyes on this one?
@MitchExpensify I'm taking a look at this one as Callstack engineer - please assign it to me. Thank you.
Done! Thanks @burczu
What is the latest here @burczu ? Thanks
@MitchExpensify - @burczu is OOO till 05/05. He's still working on a proper solution for this issue.
@burczu, @MitchExpensify, @shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@burczu how is the solution coming along for this? Thanks
@MitchExpensify Hey! I'm back from ooo - sorry for not leaving an information about it here, I've completely forgotten to do it. I'm still involved in the Guided Setup Stage 2 project (there is one last PR to merge I'm taking care of) but I'll be also working on this issue this week.
Till now, I've confirmed what @Piotrfj found and described in his comment: https://github.com/Expensify/App/issues/35725#issuecomment-2052402367 - I think line breaking issue will be hard to fix and is minor, so i suggest leaving it as is. In terms of display name issue - I was looking for the solution for making it clickable after changing the format but didn't find the solution yet, so I'll continue an investigation.
Not overdue - still investigating.
@burczu, @MitchExpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
Here's my update for the second part of the issue:
Mention highlighting is done in two places: for the chat message list it is done in the MentionUserRenderer
component, for composer it must be done inside the react-native-live-markdown
library.
For now I've managed to show display name instead of login only in the MentionUserRenderer component, here's the result:
https://github.com/Expensify/App/assets/7771498/73b3e86c-8ab6-4abb-8687-373460ac4dd2
As you can see in the above video, the mention is not highlighted in the composer, and it shows a login as a mention - from what I've found, to fix it we need to change some native code of the react-native-live-markdown
. I've tried to find the code responsible for this, but with no luck yet.
@burczu, @MitchExpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
@burczu The short mention highlighting issue will be taken care in https://github.com/Expensify/App/issues/38025.
@shubham1206agra Thanks for pointing this out. Should we put this issue on hold as the one you've mentioned is also on hold now?
Placed on hold for https://github.com/Expensify/App/issues/38025
@burczu, @MitchExpensify, @shubham1206agra Huh... This is 4 days overdue. Who can take care of this?
On hold for https://github.com/Expensify/App/issues/38025
@burczu, @MitchExpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
On hold for https://github.com/Expensify/App/issues/38025
@burczu, @MitchExpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
On hold for https://github.com/Expensify/App/issues/38025
On hold for https://github.com/Expensify/App/issues/38025
On hold for https://github.com/Expensify/App/issues/38025
Triggered auto assignment to @lschurr (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.
Reassigning while I'm leave 🙇
Still on hold
Hold
Still holding
On hold
On hold
On hold
On hold.
On hold
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.36 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:
Expected Result:
After selecting an email ID from the user suggestion list, it should be displayed in full within the available space. Once sent, the full email ID should not be displayed.
Actual Result:
The selected email id from user suggestion list is not shown in full available space and after sending full email id is displayed.The selected email ID from the user suggestion list is not displayed in full within the available space. Additionally, after sending, the full email ID is still displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/b78b686a-1d83-4555-a1eb-daf122688972
View all open jobs on GitHub
Upwork Automation - Do Not Edit