Repository navigation
Conversation
This was referenced Oct 8, 2026
icio
force-pushed
the
icio/search-autocomplete
branch
from
October 9, 2026 09:37
ab2c4f1 to
a16fffc
Compare
Content-negotiate /.search on the Accept header: application/json returns a compact autocomplete payload (capped at 8 results, with a limitHit flag and no-store caching) for the JS combobox, while browsers keep getting the HTML page (capped at 100). JSON requests tolerate an unresolved user instead of erroring. Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
Add a WAI-ARIA combobox form to the page header (a plain GET /.search form that works without JS) and reference the not-yet-added search.js that will enhance it. Move the stylesheet to a base.src.css source compiled by tailwind (content now scans static/*.js) and regenerate static/base.css with the new combobox and results-page styles. Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
Add static/search.js, which enhances the header form into a WAI-ARIA combobox: it debounces keystrokes, fetches /.search as JSON, renders a listbox popup with fuzzy-match highlighting and a "Full results" footer, and supports full keyboard navigation (arrows, Home/End, Enter, Escape) plus modifier clicks for new tab/window and the detail page. Signed-off-by: Paul Scott <408401+icio@users.noreply.github.com>
icio
force-pushed
the
icio/search-autocomplete
branch
from
October 9, 2026 10:38
a16fffc to
7bfee69
Compare
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.
Stack created with GitHub Stacks CLI • Give Feedback 💬