Skip to content

Add an Analysis menu to the top bar that opens the game picker - #361

Merged
ashtonanderson merged 1 commit into
mainfrom
claude/analysis-menu
Nov 7, 2026
Merged

ashtonanderson merged 1 commit into
mainfrom
claude/analysis-menu

Conversation

@ashtonanderson

Copy link
Copy Markdown
Member

Why

People couldn't find the analysis page's game picker, a small "Select Game" tab next to "Moves" (Discord request F22).

What changed

  • ANALYSIS in the top bar has a menu, the same kind as PLAY and MORE. Hovering ANALYSIS or tabbing to it opens the menu; clicking it still goes to the analysis page.
  • Each list item opens the existing picker on that list: My games vs Maia, My Hand and Brain games, My Lichess games, My imported games, Favorites, World Championship games. On desktop the picker opens in the left panel at its usual width. On tablet widths it opens the full-screen game list.
  • "Paste a PGN or FEN" opens the Custom Analysis box.
  • From any other page, an item opens the analysis page with that list already showing. The choice is passed through session storage.
  • The picker's source chips no longer overlap in narrow panels: at 1440 px, "Custom" and "Lichess" used to draw on top of each other.

The phone menu isn't changed, since phones already have a "Switch" button in the game card.

Testing

  • npx tsc --noEmit, npm run lint, and npx jest (261 tests) pass.
  • Checked on the local dev server at 1440×900:
    • the menu opens;
    • "My games vs Maia" switches the picker to the Play list;
    • "World Championship games" chosen from /puzzles opens the analysis page on that list;
    • "Paste a PGN or FEN" opens the Custom Analysis box.
  • These checks were done signed out, so the personal lists showed their empty messages.

🤖 Generated with Claude Code

People couldn't find the analysis page's small "Select Game" tab. ANALYSIS
in the top bar now has a menu, like PLAY and MORE: each item opens the
picker on that list (my games vs Maia, Hand and Brain, Lichess, imported,
favorites, World Championship games), and "Paste a PGN or FEN" opens the
custom analysis box. From another page it opens the analysis page on that
list. ANALYSIS itself still links to the analysis page.

Also stops the picker's source chips overlapping in narrow panels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
maia-platform-frontend Ready Ready Preview Nov 7, 2026 7:00am UTC

Request Review

@ashtonanderson
ashtonanderson merged commit 0e64f4a into main Nov 7, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — b4e22406 Deployed Nov 7, 2026 by vercel[bot]
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