-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fix #1376: Showing BLANK with search terms return NO result #1413
Conversation
Huh, apparently its getting removed by "LOAD MORE POSTS" on the preview, I'm not sure why. |
Ah, I think it has to do with the LoadAutoScroll.jsx, hmm, I'm not sure how I should fix this. |
I'll continue to fix this, if anyone check this, please tell me if you find any bugs or anything else. |
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 can't use a copyright image from Facebook, please remove this.
@NathanPang001 Hi! Telescope team is working on merging all open PRs. Are you still working on this PR? We're happy to assist you to keep working on this PR. However, please let us know if you don't have interest keeping working on it. We'll assign another team member to work on it and make it merged. Thank you :) |
We should take a look around for another royalty-free image that might fit our project and will not violate any copyrights. |
Possible replacement for the "No Results Found" picture:
@humphd @chrispinkney @birtony and everybody else are welcome to review them and select your personal favourite |
I like where this is heading. I hadn't thought about using photos, but that would be something we could do more of, since we're doing the image service in the back-end. I wonder if photos vs. illustrations are best for our overall aesthetic, since we use that on the home page for the hero banner? |
From my perception, I think the illustration fits better for the no results @humphd.
|
Number 6 is my favourite out of these |
@@ -7,6 +7,7 @@ import { Container } from '@material-ui/core'; | |||
import useSiteMetadata from '../../hooks/use-site-metadata'; | |||
import Timeline from '../Posts/Timeline.jsx'; | |||
import Spinner from '../Spinner'; | |||
import NotFound from '../../images/NotFound.jpg'; | |||
|
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.
Should this image be put in the public folder?
@@ -61,7 +66,9 @@ const SearchResults = ({ text, filter }) => { | |||
{data && data.length ? ( | |||
<Timeline pages={data} nextPage={() => setSize(size + 1)} /> | |||
) : ( | |||
<h1>No search results</h1> | |||
<h1 className={classes.noResults}> | |||
<img src={NotFound} alt="Not Found" /> |
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.
would a div
tag more appropriate here? h1
tends to be the title of the page.
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.
Agree, I would <div>
here as well
@@ -7,6 +7,7 @@ import { Container } from '@material-ui/core'; | |||
import useSiteMetadata from '../../hooks/use-site-metadata'; | |||
import Timeline from '../Posts/Timeline.jsx'; | |||
import Spinner from '../Spinner'; | |||
import NotFound from '../../images/NotFound.jpg'; |
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 should make sure to run this image (or whichever one we end up using) through https://tinyjpg.com/ or https://tinypng.com/. For the current one, it would reduce its size by 53%:
This would positively affect our site loading speed.
@@ -61,7 +66,9 @@ const SearchResults = ({ text, filter }) => { | |||
{data && data.length ? ( | |||
<Timeline pages={data} nextPage={() => setSize(size + 1)} /> | |||
) : ( | |||
<h1>No search results</h1> | |||
<h1 className={classes.noResults}> | |||
<img src={NotFound} alt="Not Found" /> |
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.
Agree, I would <div>
here as well
@humphd I don't think we will be able to use it - it is their image, and I think most of what I can do with it is screenshot it - I can't find it on their platform. |
Closed by #1700. Thank you @NathanPang001 for your work! |
Issue This PR Addresses
Fixes #1376
Type of Change
Description
Solves #1376
Adding a no results image for when the user types something that doesn't match any result.
Checklist