Skip to content

Avatar helper that suggests where to go - #45

Merged
PeterSlijkhuis merged 1 commit into
mainfrom
avatar-guide
Sep 30, 2026
Merged

PeterSlijkhuis merged 1 commit into
mainfrom
avatar-guide

Conversation

@PeterSlijkhuis

@PeterSlijkhuis PeterSlijkhuis commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

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.ts holds hand-written keywords for all 64 lessons and the tool pages, and src/content/guide.ts scores 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.

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
PeterSlijkhuis merged commit a9e9585 into main Sep 30, 2026
4 checks passed
@PeterSlijkhuis
PeterSlijkhuis deleted the avatar-guide branch October 1, 2026 07:17

This branch was successfully deployed

1 active deployment
github-pages — a9e95850 Deployed Sep 30, 2026 by PeterSlijkhuis via deploy #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant