-
Notifications
You must be signed in to change notification settings - Fork 74
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
Simplify search filters #480
Conversation
@anselmbradford Ready for review and styling, please! I think the search fields should be bigger than the default oval. |
Here's the style updates direction: Also, might tackle #418 at the same time, and show clearing (x) all the time or on rollover, I'm not sure yet. The existing placeholder text was too long, but I'll put what was there in the |
Also, the magnifying glass should be the same deep purple as the map-marker and building. Forgot to update that for the screenshot. |
I think that'll work. A couple notes:
# in config/locales/en.yml
# note the single quotes around text to adhere to style guide
en:
placeholders:
keyword_search: 'Search for...'
location_search: 'Near address or ZIP' I think I already added a To access the values in the view, you use the = t('placeholders.keyword_search') |
The title attribute can used in place of the label. However, I've continued refining the design and brought the labels back: How about just "clear search" for the reset button? |
@declan let me know if you have any input on filter appearance direction. |
Looks good, thanks! I noticed the magnifying glass in the sidebar is not deep purple as you mentioned. Did you forget to update it? The one on the home page turns purple on rollover. Also, I pushed some minor changes. Do a git pull first. |
I didn't forget, I've been going back and forth on it. It clashes a bit with the logo. Do you prefer one or the other? EDIT: typo |
No preference, thanks for confirming. I'll fix conflicts with master and merge later today. |
Adjusts component so that padding/margin can be added around inputs and they won’t throw off the button positioning.
Adds hovers states for filter input buttons. Adjusts homepage search button icon color to match inside hover state.
Updates font awesome icon on no search results view to match that used in the search sidebar.
I merged this branch into my local master branch, resolved the conflicts, then pushed to GitHub. I thought GitHub would pick up on that but apparently that's not the GitHub way to do it. My bad. I'll close this PR now that it has actually been merged. |
Argh, I just noticed @anselmbradford pushed more commits recently. I didn't pick those up. Next time, please add a comment. I wish GitHub would include PR commits in their email notifications. |
@monfresh sorry about that. I was doing a test sweep through different browsers and got pulled away. Will post a comment next time. |
We're all good now. |
Any idea why clicking "Medicare" on http://ohana-web-search-demo.herokuapp.com causes an unstyled page? |
It has nothing to do with what keyword you clicked on. If you look at the console, you'll see application.css can't be found. Will push to Heroku again and see if it fixes it. |
For some reason, certain pages (like that Medicare one) are trying to find a different application.css. The digest is different on that page than on pages that work. |
Maybe the Memcached cache needs to be flushed. |
I think that did the trick. Clear your browser's cache and try again. |
@anselmbradford I think this looks great. |
This replaces all the complicated view, JS, and controller code with 2
simple text fields for searching by location and agency name. This is a
familiar interface and keeps things simple and maintainable. Anything
that would be built on top of this simple foundation should be based on
user feedback.
Note that the text fields are not styled in this commit.