Skip to content
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

feat: no search entries found page #5462

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JennySimen
Copy link

@JennySimen JennySimen commented Oct 23, 2024

Closes #5372

This PR creates a new and better search result page when the is no seach found.

Steps to view work

  1. Go to the registry page /ecosystem/registry
  2. Enter a word in the search bar which does not exist (e.g juice)
  3. View the new designed user interface

Preview: https://deploy-preview-5462--opentelemetry.netlify.app/ecosystem/registry/?s=abcdef

Screenshot 2024-10-23 025055

@JennySimen JennySimen requested a review from a team as a code owner October 23, 2024 01:56
Copy link

linux-foundation-easycla bot commented Oct 23, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@svrnm svrnm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks very good, thank you! One comment around the image, otherwise 👍

@svrnm svrnm added the outreachy Issues for Outreachy Participants label Oct 23, 2024
@svrnm svrnm changed the title feat: no search entries found page (#5372) [outreachy] feat: no search entries found page (#5372) Oct 23, 2024
@JennySimen
Copy link
Author

@svrnm Thank you very much for the feedback.

@svrnm svrnm changed the title [outreachy] feat: no search entries found page (#5372) ✅ [outreachy] feat: no search entries found page (#5372) Oct 23, 2024
@svrnm svrnm changed the title ✅ [outreachy] feat: no search entries found page (#5372) feat: no search entries found page (#5372) Nov 22, 2024
@svrnm svrnm added ux registry and removed outreachy Issues for Outreachy Participants labels Nov 26, 2024
@svrnm
Copy link
Member

svrnm commented Nov 26, 2024

@JennySimen we are currently discussion #5681 to enable the import of the 3rd party image, after this being resolved we should be able to merge your PR

@JennySimen
Copy link
Author

Thank you, looking forward to having the pr merged.

@svrnm
Copy link
Member

svrnm commented Dec 5, 2024

@JennySimen apologies for the delay and for going back and forth. I agree with @chalin's point in this comment (#5681 (comment)) that we should avoid adding the overhead of an image that needs attribution and a license reference in our code. It's much easier in docs/blog text since we simply can put a copy right notice below the image.

I copy the relevant part of the discussion:

Stepping back a bit regarding the original PR: have we considered using just a Font Awesome icon instead, or a completely-free-and-no-license-hassle stock image source?

the font awesome icons might be too small/minimalistic, I like the idea of the image, of course someone with a telescope not finding what they are looking for would be my preferred image. We could also use a variant of

https://opentelemetry.io/homepage-hero-as-background_hu13043826424429285166.jpg

WDYT?

@svrnm
Copy link
Member

svrnm commented Jan 20, 2025

@JennySimen any thoughts on my previous comment?

@JennySimen
Copy link
Author

Hi @svrnm, I think it's a great idea to use the above image instead.

@JennySimen JennySimen requested a review from svrnm January 26, 2025 22:54
@svrnm
Copy link
Member

svrnm commented Jan 27, 2025

Hi @svrnm, I think it's a great idea to use the above image instead.

I saw that you requested my review, but nothing has changed, can you update the image as discussed? Thanks

@JennySimen
Copy link
Author

Hi @svrnm I have updated the image

Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what it looks like now. The base OTel background image maybe a good choice, but we shouldn't be using a Hugo-modified version of it (in particular this one is too dark).

You should do a resources.Get on the original image (or something like that -- I'll need to investigate further).

image

Comment on lines +166 to +171
if (results.length === 0) {
document.getElementById('no-search-result').style.display = 'block';
}

populateResults(results);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new code logic isn't correct. It breaks the responsiviness to form dropdown selection once a "no results" page has been viewed.

<img style="border: none; margin-left: 40px;" src="{{ .RelPermalink }}" width="400" alt="no result found">
{{ end }}
</div>
<p style="color: #4f62ad; font-size: 28px; margin-bottom: 0;">Oops no results found</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we shouldn't be hardcoding styles here.

@svrnm
Copy link
Member

svrnm commented Jan 27, 2025

Hi @svrnm I have updated the image

I couldn't see that when I checked earlier today, now I do. See @chalin's feedback. It would also be great if the image is not black but aligns with the dark/light mode background, so you might need to edit that image, or we need to see if we can find a version with a light background

@JennySimen
Copy link
Author

JennySimen commented Feb 17, 2025

Hi @svrnm, as per the feedback from @chalin concerning the image, it will be great if I could please get a version of the image with a lighter background to use since I have not been able to edit it.

@chalin
Copy link
Contributor

chalin commented Feb 25, 2025

Hi @svrnm, as per the feedback from @chalin concerning the image, it will be great if I could please get a version of the image with a lighter background to use since I have not been able to edit it.

@tedsuo - can you help here. I think that you're the one who created the original artwork.

@chalin
Copy link
Contributor

chalin commented Feb 25, 2025

@JennySimen - there are a few GitHub actions that are failing, such as: https://github.com/JennySimen/opentelemetry.io/actions/runs/13519263866

Could you refresh your fork, and disable those workflows? I keep getting failed workflow notifications from your fork. Thanks. /cc @trask

@chalin chalin changed the title feat: no search entries found page (#5372) feat: no search entries found page Feb 26, 2025
@JennySimen
Copy link
Author

Hi @svrnm, as per the feedback from @chalin concerning the image, it will be great if I could please get a version of the image with a lighter background to use since I have not been able to edit it.

@tedsuo - can you help here. I think that you're the one who created the original artwork.

Hi @tedsuo, is there anything from my side needed to have the lighter backgorund artwork?

@JennySimen
Copy link
Author

@JennySimen - there are a few GitHub actions that are failing, such as: https://github.com/JennySimen/opentelemetry.io/actions/runs/13519263866

Could you refresh your fork, and disable those workflows? I keep getting failed workflow notifications from your fork. Thanks. /cc @trask

Hi @chalin I have disabled the workflows as requested

@chalin
Copy link
Contributor

chalin commented Mar 3, 2025

Hi @tedsuo, is there anything from my side needed to have the lighter backgorund artwork?

Let me ping @tedsuo @austinlparker et all on Slack to see if we can get response.

@austinlparker
Copy link
Member

The hero artwork was commissioned years ago, I forget by whom (or even if they have the originals any more -- IIRC I don't think I got a psd for it, just PNGs?)

Looking at this thread, why not just use a FOSS icon library then scale up the icon? They are vector images after all.

@chalin
Copy link
Contributor

chalin commented Mar 3, 2025

Actually found a way using CSS filter: brightness(3.6):

image

It would be great to not have to duplicate the image, and just use the CSS, but for starters, set it up with the image above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[outreachy] Registry: no entries found visualization
4 participants