App icon indicating copy to clipboard operation
App copied to clipboard

Group creation - Focus doesn't auto-return to search box after adding a user

Open isagoico opened this issue 5 years ago • 10 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Expected Result:

Focus should be in search box so user can quickly search for another member of the group

Actual Result:

Focus is not in search box after adding a user to the group.

Action Performed:

  1. Log in to staging.expensify.cash
  2. Click on the + button
  3. Click on New Group
  4. Search for a user and select it

Workaround:

User has to manually go back to the search box each time a user is selected.

Platform:

Where is this issue occurring?

Web ✔️ iOS Android Desktop App ✔️ Mobile Web

Version Number: 1.0.24-1

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/44479856/115266958-a977ab80-a106-11eb-9ae1-c71579530576.mp4

Expensify/Expensify Issue URL:


From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1618675563363700

ISSUE: When creating a new group chat, after selecting a person the cursor doesn't auto-return to the search box to add more people, you have to click the search box each time. Desktop Version 1.0.22-1

isagoico avatar Apr 19 '21 16:04 isagoico

Triggered auto assignment to @slafortune (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Apr 19 '21 16:04 MelvinBot

Triggered auto assignment to @sophiepintoraetz (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Apr 19 '21 16:04 MelvinBot

I've actually experienced this myself recently/able to reproduce using the outlined steps.

sophiepintoraetz avatar Apr 21 '21 03:04 sophiepintoraetz

Triggered auto assignment to @TomatoToaster (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Apr 21 '21 03:04 MelvinBot

Actually, I think it should be daily as per this SO

sophiepintoraetz avatar Apr 21 '21 03:04 sophiepintoraetz

Dang this is an annoying bug. I'd actually like to work on fixing this one so I can get more experience with e.cash.

@sophiepintoraetz, I still think weekly makes sense for this one. I couldn't find anything in the S/O about this type of issue being a daily, but I might have just missed something. Was there something in particular that let you know this should be a daily?

TomatoToaster avatar Apr 21 '21 15:04 TomatoToaster

@TomatoToaster - I might have been conflating practises here but my understanding is that Daily is assigned so that the triager looks at it, then may determine another timeframe? image

sophiepintoraetz avatar Apr 22 '21 01:04 sophiepintoraetz

Ahhh Ok yes. I see what you mean. Well it being a daily did make me check the ticket immediately so you might be right 😂 .

I'll provide an update when I get time for this one next.

TomatoToaster avatar Apr 22 '21 22:04 TomatoToaster

Ok drafted up a PR to fix this. The code change will fix this problem, but it's a little hacky so I'm not satisfied with it yet (using a ref of a ref). I might tweak it be cleaner before putting it for review. I also noticed that the search bar is not being focused immediately when the component is opened. I'm going to try and see if there is a fix for that too.

TomatoToaster avatar Apr 23 '21 21:04 TomatoToaster

PR is up for this and it's completed. Just ran into some trouble when testing this on dev (specifically ios/android). It'll be up for review soon.

TomatoToaster avatar May 03 '21 13:05 TomatoToaster