code-gov-web icon indicating copy to clipboard operation
code-gov-web copied to clipboard

Search Bar: Pressing down/up arrow on keyboard should move through suggested search options

Open jlow81 opened this issue 8 years ago • 2 comments

Expected Behavior

When I press the down/up arrow keys I should be able to select the available suggested search options

Current Behavior

Pressing arrow keys does nothing

Possible Solution

Not sure

Steps to Reproduce (for bugs)

  1. Search for 'water'
  2. Try to use down/up arrow keys

screen shot 2018-03-07 at 2 57 49 pm

Context

Make it easier for users to select suggested search options

Your Environment

  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Macbook
  • Link to your project: https://code.gov/#/

jlow81 avatar Mar 07 '18 20:03 jlow81

Hi @jlow81 - I was interested in picking this up as a first issue (just heard about code.gov, very cool!) but the search bar requires API access to fetch agencies. I'm getting a 403 using when running the app using the provided instructions, so I assume the API key in the config is not valid. Any way around this?

showell215 avatar Oct 23 '18 18:10 showell215

Hi, @showell215 . You can get an API key for local development here: https://developers.code.gov/key.html

You'll also run something like this to run it locally:

CODE_GOV_API_KEY=asidfjluwehbfwgabfsdaifjbweuhfbywegbaf run start

or if you are developing on a server like a Cloud 9 environment

sudo CODE_GOV_API_KEY=asidfjluwehbfwgabfsdaifjbweuhfbywegbaf HOST=0.0.0.0 PORT=80 npm run start

Lemme know if you have any more questions! :-)

DanielJDufour avatar Oct 23 '18 18:10 DanielJDufour