Skip to content

Probeable spec feedback: show the generated code under the explanation - #194

Merged
CoffeePoweredComputers merged 1 commit into
masterfrom
spec-feedback-show-code
Oct 17, 2026
Merged

CoffeePoweredComputers merged 1 commit into
masterfrom
spec-feedback-show-code

Conversation

@CoffeePoweredComputers

Copy link
Copy Markdown
Owner

What

The Probe & Explain feedback panel quoted the student's explanation in place of the code editor, so the code generated from that explanation was never shown. The editor is now always rendered. For spec the explanation sits above it and the editor header reads "Generated Code"; for Probe & Code nothing changes.

Mechanically: CodeSubmissionFeedback gains a before-submission slot and a codeTitle prop (default "Your Submission"); the old submission slot is removed since the probeable wrapper was its only user. Two i18n keys added (en, es).

Verification

  • Unit: 622 pass; the spec test now asserts explanation, then the labelled code section, in that order.
  • E2E against the dev stack: C24b, C24d, B16, B17 pass (7 tests), with C24b asserting the "Generated Code" header.
  • Screenshot of the live spec panel: explanation, generated code, ladder.

🤖 Generated with Claude Code

The spec panel quoted the explanation in place of the code editor, so
students never saw the code their explanation produced. The editor is
now always rendered; the explanation goes in a before-submission slot
above it and the header reads "Generated Code" for spec (new codeTitle
prop, default "Your Submission"). The old submission slot is gone since
nothing else used it. Unit test and C24b assert the explanation, then the
labelled code, then the ladder.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@CoffeePoweredComputers
CoffeePoweredComputers merged commit 894b490 into master Oct 17, 2026
12 checks passed
@CoffeePoweredComputers
CoffeePoweredComputers deleted the spec-feedback-show-code branch October 17, 2026 00:07
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