App icon indicating copy to clipboard operation
App copied to clipboard

[Hold for payment 2020-08-09] Pressing an arrow key while searching with no results will whitescreen the app

Open rdjuric opened this issue 5 years ago • 13 comments

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:

  1. Open Search (CMD + K on mac OS)
  2. Enter random characters in a way that you get no results
  3. Press the down arrow, the up arrow or enter
  4. Whitescreen

Expected Result:

Pressing an arrow key without any option to select shouldn't crash the app.

Actual Result:

The app crashes

Workaround:

Don't press arrow up or arrow down.

Platform:

Where is this issue occurring?

[x] Web iOS Android [x] Desktop App [x] Mobile Web

Version Number: Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation

@amcheler ISSUE: On version v1.0.77-7 desktop, pressing an arrow key while searching with no results will whitescreen the app. image (1)

Expensify/Expensify Issue URL:

View all open jobs on Upwork

rdjuric avatar Jul 15 '21 00:07 rdjuric

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

MelvinBot avatar Jul 15 '21 00:07 MelvinBot

Proposal

I think we can solve this by adding an early return here in case there're are no options to select/choose. https://github.com/Expensify/Expensify.cash/blob/5a8eff84733e89edf0533554a550cf899e6cfa59/src/components/OptionsSelector.js#L116-L126

if (allOptions.length === 0) {
    return ;
}

rdjuric avatar Jul 15 '21 00:07 rdjuric

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

MelvinBot avatar Jul 15 '21 17:07 MelvinBot

Added weekly and firstpick tags! Sending to the pool!

Gonals avatar Jul 16 '21 07:07 Gonals

@Gonals Do you think this one be worked by an External/contractor? 😃

rdjuric avatar Jul 27 '21 17:07 rdjuric

Ah yeah I think this one can be external!

TomatoToaster avatar Jul 30 '21 21:07 TomatoToaster

Triggered auto assignment to @arielgreen (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Jul 30 '21 21:07 MelvinBot

Triggered auto assignment to @NikkiWines (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Jul 30 '21 21:07 MelvinBot

@NikkiWines can you please review @rdjuric's proposal?

arielgreen avatar Jul 30 '21 21:07 arielgreen

Upwork

arielgreen avatar Jul 30 '21 21:07 arielgreen

@rdjuric's proposal looks good! You're good to hire them @arielgreen

NikkiWines avatar Jul 30 '21 23:07 NikkiWines

@rdjuric I just sent over an offer.

arielgreen avatar Jul 31 '21 00:07 arielgreen

Paid & bonused for proposing + fixing.

arielgreen avatar Aug 09 '21 17:08 arielgreen