-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Rewrite search page in Preact #797
Comments
Not sure why I didn't see #360 before. I'll outline what needs to be done as I migrated the first part of search to preact. I should have some free time coming up to grab this or I'd be happy to pair with someone, if they want to learn the ropes a bit. |
@nickytonline I would like to work on this while learning the ropes and I'll be happy to pair up with you on it. |
Yeah, @nickytonline @ascii-dev I think that would be a great match. I think you two pairing would be awesome. |
Still settling in to the new job, but gonna start looking into this as not much activity happening here at the moment. |
So Most of what's in The search results have their own container element that we'll need to rerender to. This ties in to the Still digging to see what else is required. |
Hi, @nickytonline I've also not been able to look into this because of work. But anyway I might be needed on it? |
Ah look at this there is an Issue for the refactor I asked @nickytonline to do, little outdated but definitely still looking to get this done in Elasticsearch! |
Just dropping some thoughts on this:
|
Where are you seeing this? If you look at the search controller you will see that all of the endpoints return JSON so I think we are good to go on the backend. |
Ahh, I wasn't aware that they all return JSON. Thanks @mstruve! |
This should be a RFC :) |
@benhalpern I'll leave it to you to close this issue out if/when you decide to convert it into a RFC. Maybe @nickytonline can help champion it, too :) |
Feature Request or Task
As a user, I will want additional filters to narrow things down in my search. e.g. #360, but we don't currently have a great base for adding to the valnilla page.
Technical details
Right now, all the code for search is in
_search.html.erb
basically it's inline on the search page.We want to move it to
app/javascript
. Create a new component in thesrc
file calledSearchResults
and add a newpack
calledSearchResults
, and then add<%= javascript_pack_tag "SearchResults", defer: true %>
to_search.html.erb
Definition of Done
The current functionality has been replicated in clean, tested Preact code.
The text was updated successfully, but these errors were encountered: