opentofu / registry-ui

Powering the OpenTofu Registry Search (beta)
https://search.opentofu.org
Other
12 stars 4 forks source link

Search appears not to work right now #227

Open tedivm opened 2 months ago

tedivm commented 2 months ago

URL of the page that's broken

https://search.opentofu.org/

Screenshot

Screenshot 2024-09-23 at 1 56 58 PM

OS, browser version, installed extensions

Firefox 129.0.1 (64-bit)

MacOS 14.6.1

Additional information

When I try to search for something it clears the search field but nothing happens- there isn't even a network call.

cam72cam commented 2 months ago

That's odd, it's working fine for me (FF 129.0.2 (64-bit))

Wicaeed commented 1 month ago

Can confirm I'm having this issue right now in Chrome and Firefox.

And then I went back to check another tab that it really was not working and it was now working

Edit: And is back to now not working: image

The URL was https://search.opentofu.org/provider/databricks/databricks/resources/global_init_script.md

cam72cam commented 1 month ago

CC @Yantrio

tedivm commented 1 month ago

I think my issue is that I type too fast. If you go to the page, type in a provider name, and hit enter before the autocomplete thing shows up then the search field gets emptied and no auto complete occurs (or actual search). You need to tweak the javascript so that you take over the "enter" command and don't clear the field.

cam72cam commented 1 month ago

Ah, I've hit that myself. That's definitely a weird UI quick that needs to be fixed.

Wicaeed commented 1 month ago

I think my issue is that I type too fast. If you go to the page, type in a provider name, and hit enter before the autocomplete thing shows up then the search field gets emptied and no auto complete occurs (or actual search). You need to tweak the javascript so that you take over the "enter" command and don't clear the field.

This might have been my issue as well, I just started typing into the Providers search box quickly and hit enter as soon as I was done typing.

Coming back to it later, and typing in my provider, and then waiting maybe a second or two resulted in the autocomplete and drop down filling in fine

abstractionfactory commented 4 days ago

I believe this works now, but we need to fix the search ranking.

tedivm commented 4 days ago

No, the same bug is there.

I think my issue is that I type too fast. If you go to the page, type in a provider name, and hit enter before the autocomplete thing shows up then the search field gets emptied and no auto complete occurs (or actual search). You need to tweak the javascript so that you take over the "enter" command and don't clear the field.

You should change the javascript to ignore when someone hits the enter key to resolve this bug.