Repository navigation
Add a game search to the navbar - #87
Merged
Merged
Conversation
Member
|
Did you mean to set these PRs as "draft"? |
Finding a specific game took several clicks through Explore. Add a magnifying glass to the navbar on desktop and mobile that searches the catalog by title or designer and opens the game page. Reuse the game picker's filtering, with title matches ranked first.
norendren
force-pushed
the
feat/navbar-game-search
branch
from
November 7, 2026 20:35
06629c2 to
a4a2924
Compare
Contributor
Author
|
I did, yes! Especially with contributions largely made by AI I like to get them up in draft form and then review them and provide actual human descriptions. Was going to pop over to the discord after marking them ready |
Member
|
Sounds good. I'll wait to hear from you. |
norendren
marked this pull request as ready for review
November 7, 2026 21:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human Description
Being transparent about AI contributions, I like to hand-type descriptions at the top.
Unless I've missed something, it is at least a few clicks to get from the home page of the site to a particular game. The fastest path I'm aware of involved
Games -> Games List -> Small text box -> Type game
I figured a nice, top level magnifying search bar would be nice.
Problem
Getting to a specific game currently means opening the menu, going to Games, finding the filter box in the Games column and typing the name.
Change
Adds a magnifying glass to the navbar on desktop and mobile. Clicking it opens a search box, and choosing a result goes to
/games/:metaGame.filterGameOptions, so it matches the same name, id and designer text as the game picker, over the same public catalogrankGameSearchResultsputs title matches first, so "go" lists Go before CargoDocs and changelog are updated.
Layout changes
There are two small CSS changes to make room for the extra icon:
.navbar-itempaddingDemo
Desktop
Dark mode, keyboard only
Phone
Recorded on a local dev server, logged out, which is why the logo is replaced by development text and a Log In button shows. The red dot is a marker for the mouse pointer and isn't part of the UI.
Testing
GameSearch.test.jsandrankGameSearchResultstestsnpm run linthas 0 errors andnpm run docs:checkpassesvitest run: all 953 tests pass (1 skipped), on these branches merged togetherPlease check: I couldn't log in locally, so the logged-in navbar was simulated with placeholder elements. That simulation showed a 2px overflow at exactly 1220px in English, and it fits at 1240px. French already overflowed at this width before this change. It's worth a quick look while logged in, at around 1220px wide.
PR checks are skipped for fork PRs, so these results are from a local run.