-
Notifications
You must be signed in to change notification settings - Fork 61
9402 advanced search filter #585
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
Conversation
668da23 to
711b60a
Compare
smoyte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: I rebased this against develop with the other PR merged.
It took me awhile to figure out why the box always says query 😅. Now it makes perfect sense of course but in future with these PRs can you remind me what is stubbed vs. what real functionality you're adding so I can remember what to be testing for/scrutinizing. It would help me get back into the context. Thanks.
Overall it looks great. A couple small comments inline, plus can we get some space between these buttons please:
Thanks a lot!
| onChange={[MockFunction]} | ||
| placeholder="Advanced search" | ||
| type="text" | ||
| value="query" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be foo? I'm not seeing foo anywhere in this snapshot even though that's the query param...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OH RIGHT. I guess this snapshot will change once we integrate with the backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this value is coming from the test mock in spec/.../search/utils.js which defines advancedSearchProps. The AdvancedSearchFilter component itself gets props directly, it doesn't care what the actual url querystring is.
|
@cooperka Hmm, it seems there are a lot of CI failures. We will need to figure those out... |
495b7c7 to
e37f663
Compare
8546281 to
eeee4de
Compare
|
@smoyth tests should finally be passing. There were a lot of weird inconsistencies with the way Ruby talks to React, and also with the way Capybara manipulates the DOM. I squashed the hell out of the commits, hopefully the solution is fairly readable now. Ready for review. |

Integrates the existing search box into the new Filters component.