-
Notifications
You must be signed in to change notification settings - Fork 5
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
All search #11534
All search #11534
Conversation
<p className={font('intr', 5)}> | ||
{contentQueryFailed ? ( | ||
<> | ||
There was a problem fetching some search results. Please try |
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.
This would need an editor to write it for real
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.
Fairs, could create a new ticket for error messages or add it to the no results scenarios as those will be worked on next sprint?
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.
content/webapp/components/ContentSearchResult/ContentSearchResult.tsx
Outdated
Show resolved
Hide resolved
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.
content/webapp/components/ContentSearchResult/ContentSearchResult.tsx
I thought we were moving towards the content/webapp/components/ContentSearchResult/index.tsx
model.
It's fine if not, but just a naming thing that if we don't want we should change the others that have it?
Although I still think we could move the other "SearchResults" component under the umbrella of one folder and then index
becomes confusing!
The links for Exhibition Text don't lead to the captions-and-transcript page (like Hard graft's http://localhost:3000/search?query=hard+graft) |
It's reaaaaally cool to see it come to life 🙌 loved switching to this branch and rendering it. |
Nice spot thanks! |
if (type === 'exhibition-texts') { | ||
return `/guides/exhibitions/${uid}/captions-and-transcripts`; | ||
} | ||
|
||
if (type === 'visual-stories') { |
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.
We're not returning the "correct" URL here, since we don't have 'data', it goes to the fallback URL - do we mind? (maybe one for Lauren).
http://localhost:3000/visual-stories/hard-graft
should be
http://localhost:3000/exhibitions/hard-graft-work-health-and-rights/visual-stories
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.
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.
Audio highlight tour is there at least 3x; even though it says 5 results, this makes it look like there are more
http://localhost:3000/search?query=hard+graft+highlight
Hermmm I can't replicate anymore.... Weird? Hot reload? Will keep an eye out 🤔 UPDATE: I was able to replicate! It's on query change. So try "hard graft" -> search -> "hard graft highlight" -> search; there are more results displaying than should. |
Nice catch! I was using the |
Size Change: +1.8 kB (+0.18%) Total Size: 1.02 MB
ℹ️ View Unchanged
|
88d52fd
to
369354c
Compare
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.
🙌
Part of #11460
What does this change?
Adds a
ContentSearchResult
component and uses it behind theallSearch
toggle on the new search pageHow to test
Turn on the toggle, search for something, check the linkResolver takes you to where it should for each of the possible content types.
I used the existing Pagination component (if/when we update to match the designs, I think that could be a larger piece of work to make that change everywhere we do pagination).
Catalogue results are being dealt with separately. I also backed out of tackling the styling of the search box and adding then number of hits per section as part of this PR. It would require several more requests and maybe needs more discussion before it gets built
How can we measure success?
We can serve site-search information to users rather than them having to Ask Jeeves
Have we considered potential risks?
Things link to the wrong place/display incorrectly. It's behind a toggle so this shouldn't be a problem for as long as that's the case if so