Skip to content

Add language picker to code-review challenges - #46

Merged
Zhu-E merged 2 commits into
mainfrom
code-review-language-picker
Apr 25, 2026
Merged

Add language picker to code-review challenges#46
Zhu-E merged 2 commits into
mainfrom
code-review-language-picker

Conversation

@alllexisf

@alllexisf alllexisf commented Apr 25, 2026

Copy link
Copy Markdown
Collaborator

Each code-review challenge now ships a list of language variants instead of a single source file. Both seed challenges (Division Factory and What Are You Pointing At?) gained Java and Python variants alongside their original JS / C source, each with their own prompt, hints, AI hint rubric, and client-side solution check.

CodeReviewPlay reads from the active variant rather than the challenge directly, exposes a small segmented control above the editor to switch languages, and resets editor / hints / verdict / AI state when the variant changes. The user's language preference carries across challenges when the next challenge offers it. Switching languages mid-edit prompts a confirm so unsaved patches are not silently dropped.

alllexisf and others added 2 commits April 25, 2026 14:25
Each code-review challenge now ships a list of language variants instead
of a single source file. Both seed challenges (Division Factory and
What Are You Pointing At?) gained Java and Python variants alongside
their original JS / C source, each with their own prompt, hints, AI
hint rubric, and client-side solution check.

CodeReviewPlay reads from the active variant rather than the challenge
directly, exposes a small segmented control above the editor to switch
languages, and resets editor / hints / verdict / AI state when the
variant changes. The user's language preference carries across
challenges when the next challenge offers it. Switching languages
mid-edit prompts a confirm so unsaved patches are not silently dropped.

Made-with: Cursor
@Zhu-E
Zhu-E merged commit 35b804c into main Apr 25, 2026
4 checks passed
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.

2 participants