Skip to content
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

Add Searchbar and Search Results Page to Snooty #261

Merged
merged 36 commits into from
Aug 26, 2020
Merged

Add Searchbar and Search Results Page to Snooty #261

merged 36 commits into from
Aug 26, 2020

Conversation

jestapinski
Copy link
Collaborator

@jestapinski jestapinski commented Aug 21, 2020

JIRA Epic
InVision
Staging
Scope

This PR encompasses all of the previously approved work for the new search front-end.

* Add leafygreen text input

* Build general searchbar structure

* Fix blur animation issue

* Clean up CSS

* Bump leafy text box to 3.0.0

* Clean up theme values, colors, self-closing div

* Remove extraneous style and update snapshot
* Add leafygreen text input

* Build general searchbar structure

* Fix blur animation issue

* Clean up CSS

* Switch Navbar to Function Component

* Use memoized value with active on start
* Add leafygreen text input

* Build general searchbar structure

* Fix blur animation issue

* Clean up CSS

* Switch Navbar to Function Component

* Bump leafy text box to 3.0.0

* Clean up theme values, colors, self-closing div

* Remove extraneous style and update snapshot

* Implement basic expansion animation for mobile

* WIP move control to parent

* WIP add mobile support

* Add screen-reader labels

* Clean up common button styling

* Remove ref experiment

* Clean up animation timing, more css cleanup

* Fix go button, add commentary

* Dont opaque navbar on mobile since it is covered

* WIP mobile

* Clean up mobile top issue and change hover state

* Remove type search due to issues

* Fix bad navbar merge

* Add position and color feedback from Allison

* Add additional breakpoints to expand/collapse searchbar

* Remove hover handlers and use emotion to handle focus, hover events

* Add useMedia hook to re-run on mount

* Fix SSR issues using the isClient/useEffect pattern

* Use isBrowser helper and use query from theme
* Add general pagination component

* Fix onClick position, add thorough tests

* Clean up alignment and sizing

* Remove old comment

* Swap to using leafy icon button

* Remove code no longer needed with icon button
* Fetch from marian and display

* Fix pagination merge, move prop spread on result

* Clean up hover state

* Add height 100% to div

* Rename local const to avoid confusion

* Clean up fonts

* Clean up click outside handling with hook

* Use a nicer escape

* Use arrow fns

* Lighten hover color and activate on tab
* Abstract marian result parsing out of searchbar

* Update navbar, searchbar, pagination snapshots

* Add param to optionally return some number of results with test

* Standardize on JSON
* Add safe search highlighting

* Clean up tag close
* Add safe search highlighting

* WIP

* WIP

* WIP

* WIP

* Clean up mobile active state

* Update snapshots for context provider

* Clean up css and use docsTheme font size

* Swap mobile size to Small, remove 100% always height on mobile

* Clean up blur bog on iOS

* Cleanup changes for brevity

* Fix url prop

* Always fill in mobile text bar
* Split large searchbar component into proper hierarchy

* Clean up

* Clean up icon button and search text
* Parse and Format Marian Manifests

* Use regex to parse manifest, add rest of manifests to mapping

* Add comment for regex

* Split logic for parsing one marian manifest

* Update label names
* Add basic filter UI (non-functional)

* Fix styling changes

* Add unused reset button for footer
* Add basic filter UI (non-functional)

* Fix styling changes

* Add unused reset button for footer

* Implement filter logic

* Use marian PROD

* Use draft state prop

* Push logic into context

* Clean up hooks

* Clean up hooks in top level

* Add empty state

* Update search filter comment

* Sort properties case insensitive

* Rename current/master to stable/latest
…254)

* Add search query instrumentation

* Add search rank instrumentation

* Fix docs tools

* Fix docs tools again
* Add basic filter UI (non-functional)

* Fix styling changes

* Add unused reset button for footer

* Implement filter logic

* Use marian PROD

* Use draft state prop

* Push logic into context

* Clean up hooks

* Clean up hooks in top level

* Add empty state

* Update search filter comment

* Sort properties case insensitive

* Address dupe key issue

* Add button hover

* Add y offset for box shadow

* Make pagination botton hover a perfect circle

* Rename current/master to stable/latest

* Fix spacing
* Parse the search-results directive

* Add basic filter UI (non-functional)

* Fix styling changes

* Add unused reset button for footer

* Implement filter logic

* Use marian PROD

* Use draft state prop

* Push logic into context

* Clean up hooks

* Clean up hooks in top level

* Add empty state

* Update search filter comment

* Sort properties case insensitive

* WIP search page

* WIP testing

* Clean up testing

* Add support for large title via prop

* Add bold for title when enabled

* Rename current/master to stable/latest

* Update filter test for Latest replacement

* Remove tests for other PR

* Remove snapshot

* Fix search URLs

* DOP-1371: Add 'blank-wide' template

* Add conent sub-wrapper

* Reorder css

* Add page title

* Refactor into subdir, add instrumentation

* Add areaFrom to existing instrumentation

* Remove empty state for now

* Remove empty state for now

* Clean up empty state for now

* Remove extra )

* Add enter key functionality

* Remove fragment
* DOP-1367: Add arrow key support

* Add todo mark

* Add searchbar ref to context and use to query for results

* Remove unused prop

* Add leafy hook for handling top searchbar events

* Remove dead code from trying hooks
* DOP-1339 Part 3: Empty State

* Center the empty state

* Actually push it up a bit more because of one more margin
* Add onClick for magnifying glasses

* Safe dom search, reorder CSS
* Add more significant testing

* Address warnings

* Clean up query param and update searchbar snapshot

* Update snapshot for empty state addition
@jestapinski
Copy link
Collaborator Author

This is now ready to go! Feel free to merge in when the team is ready for this to go live

@sophstad sophstad merged commit cba7c66 into master Aug 26, 2020
@sophstad sophstad deleted the search-ui branch August 26, 2020 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants