-
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
CRITICAL: Desktop - Chat Switcher is slow and doesn't recognize keystrokes #28071
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
@stephanieelliott Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~011dba4ca10589e48c |
Adding relevant labels |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
ProposalPlease re-state the problem that we are trying to solve in this issueDesktop - Chat Switcher is slow and doesn't' recognize keystrokes What is the root cause of that problem?On What changes do you think we should make in order to solve the problem?
Note: as ANIMATED_TRANSITION is being used on another component as well, we have to decide the final value of it. Resultfix_search_lag.movWhat alternative solutions did you explore? (Optional)None |
@cubuspl42, @stephanieelliott Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Could you elaborate? I understand why it does not happen immediately, but how does debouncing explain the missing keystrokes? |
Based on my observations the reason is because of race conditions when debouncedUpdateOptions() is called before the state is fully updated, thus causing some keystrokes to be missed @cubuspl42. |
@studentofcoding Can this race condition be observed when, for example, we add some Could you provide a video with a sequence of logged events demonstrating the race? I'd like to understand better what kind of race condition we're dealing with. I believe that the solution might be working, but the root cause analysis is sometimes even more important than a fix itself. |
Sure @cubuspl42, let me add the demonstration tonight |
Hey @studentofcoding and progress with the demonstration? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I asked for help with figuring out this one on Slack |
@cubuspl42 @stephanieelliott 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! |
We're off hold, Fabric is live and the chat switch is still a lil slow, at least for me. In a few tests I did right now, it was just the first letter that doesn't show, if you type quickly after typing |
I will try to find the root cause and hopefully also some solution in a few days |
Hi! Coming back after investigation. |
Thanks @filip-solecki . Does this affect other parts of the app too? I've been noticing that the first character often gets missed. ie. here I typed
|
Currently it can occur on every page with SelectionList when you start typing before animation transition is over. |
Thanks @filip-solecki . What do you propose are the next best steps here? (I'm unfamiliar with SelectionList and def not an engineer). |
The simplest solution might be to provide an option to bypass the timeout causing missing letters on certain pages where it's possible. This is not a perfect solution since there are pages that need this timeout to prevent previously mentioned bugswhen navigating back. Another option is to discover an alternate solution for the aforementioned bug. The current timeout is essentially a workaround. If we can find a different approach, we won't need the timeout and the related issue will be eliminated. |
Thanks @filip-solecki. Since this is a part of #newdot-quality and you're a member of the channel, can you start a conversation there about how we want to proceed? With more 👀, we might be able to find a solution that covers all bases. Thx |
@filip-solecki posted in #newdot-quality here. I cross posted to the SWM room to see if any devs could dive in. Here's the post from Filip
|
followed up in slack It seems like we either need to find someone internal to get on this and make it |
PR is in review. Let me know if I can hellp with testing, I have a feeling regressions on this could be pretty bad. |
@aimane-chnaif can you please accept the job and reply here once you have? I reviewed the issue and PR, there are pretty much no comments on this issue but you reviewed the PR and made a couple comments, so I set the price at $250. |
Accepted thanks. |
Contributor+: @aimane-chnaif paid $250 via Upwork. @aimane-chnaif , for urgent issues, they need to have the |
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:
command+k
to open chat switcherExpected Result:
The characters you type show up in search
Actual Result:
Many characters are missed. ie. I typed
lauren
quickly and only then
showed.Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.73.0
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
n/a
Expensify/Expensify Issue URL:
Issue reported by: @mallenexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695286362554219
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: