Repository navigation
Avatar helper that suggests where to go - #45
Merged
Merged
Conversation
A "Where to?" button with the student's avatar sits bottom right on every page. Type a few words and it suggests up to four lessons or pages from a keyword index of all 64 lessons and the tool pages. A research question also gets the likely analysis and the lesson that teaches it. With nothing typed it offers to carry on from the last lesson.
PeterSlijkhuis
force-pushed
the
avatar-guide
branch
from
September 30, 2026 08:00
de2c22d to
a9e9585
Compare
This branch was successfully deployed
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.
Before: a student who didn't know which lesson or page covered their topic had to scan the sidebar.
After: a "Where to?" button with the student's own avatar sits in the bottom right of every page. Typing a few words ("t-test", "make a plot", "how many participants") lists up to four matching lessons or pages. A research question also gets the likely analysis and the lesson that teaches it. With nothing typed, it offers to carry on from the last lesson, plus a few starter questions.
How:
src/content/guideIndex.tsholds hand-written keywords for all 64 lessons and the tool pages, andsrc/content/guide.tsscores them against the typed words. Research questions reuse the model chooser's matcher. It matches keywords only; there is no AI or server. Tests cover the matching, keyboard use (Escape) and that every lesson has keywords. The axe scan is clean on desktop and phone.