* feat: Passing hits from SearchHits to parent SearchBar to keep track of with the keyboard. Moved all logic for number of hits to WithInstantSearch.js
* Basic functionality working
* Added up/down looping functionality to dropdown
* Set 's' and '/' as shortcuts to focus the search bar
* Moved some things around and added functionality for mouse hovering to change the selected hit. Reworked a bit of the global CSS so mouse hovers don't cause multiple highlights in the dropdown
* Brought back magnifying glass icon
* feat: Switched out onKeyDown and key codes for react-hotkeys
* Refactoring based on review
Added GlobalHotKeys just to make sure all keyup events are registered,
regardless of what state HotKeys is in.
Co-authored-by: moT01 <tmondloch01@gmail.com>
GlobalHotKeys were abandoned, because they were capturing events that
had called stopPropagation. This meant that something needed to be in
focus, hence passing a ref of the HotKey DOM element to the Editor.
react-hotkeys has been updated to 2.0.0-pre9, because 2.0.0 captured
ctrl keypresses when asked for ctrl+enter
Currently only classic challenges can be executed by hotkey, but all
allow hotkey navigation
* feat: Curriculum page loads with current challenge block open
* feat: Curriculum page expansion changes from review
* feat: Curriculum page expansion changes from second review
* fix: use a cookie to track current challenge
* fix: remove redundant server changes
* fix: add PropTypes to fix lint error
* fix: change cookies to store and add tests
* fix: use currentChallengeId
* fix: update tests
I couldn't figure out how to test the challenge saga, so that's gone for
now. The Map tests have been updated to use currentChallengeId
* fix: remove unused PropTypes
* fix: separate currentChallengeId from user
* fix: update currentChallengeId directly on mount
* feat: reset map on every visit
* fix(client): add warning on exceeding forum post length limit
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
* fix: corrected guide url for backend challenges and projects
* fix: moved getGuideUrl to utils
* fix: added forumTopicId to ChallengeNode PropTypes
* fix: conolidated helpers and add base url to env.json
* fix: made use template literals
* tests: created unit tests for getGuideUrl
* fix: add characters which will be encoded
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: use encoded version of title
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: encode title
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* Adjust search bar to only show hits for News
* Dropdown links working. Working on basic pagination
* Links to articles and temporarily routing to the News search result page working
* Fix colors for search bar and drop down
* Added Lato 300 font weight. Search bar now looks and works like it does on News.
* feat:update styles
* Update client/src/components/search/searchBar/SearchBar.js
Co-Authored-By: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
* Added Lato 300 font weight. Search bar now looks and works like it does on News.
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>