iftechfoundation / ifdb

The software behind the Interactive Fiction Database (IFDB)
Other
25 stars 18 forks source link

Add a way to search on non-game browse pages #1135

Open dfabulich opened 2 hours ago

dfabulich commented 2 hours ago

If you click the Browse link in the header, then click on a non-game search type (list, comp, etc.) there's no obvious way to search for items of that type.

https://ifdb.org/search?browse&comp

dfabulich commented 2 hours ago

I have two ideas on how to do this.

We could just add a search box at the top of browse pages. (Presumably only for non-game browse pages, because the header already has a search box there…?)

Or, we could add a tip box, "Search for competitions". (But tip boxes don't show on mobile #1043 So we'd presumably have to figure out what to do about that.)

salty-horse commented 2 hours ago

I'm for adding the search boxes (which already need some cleanup, because their code is duplicated at the top and bottom of the search page, and there's a big if {} else {} chain that duplicates a lot of code - it needs to be an echo function call)