[3/4] lab2-studio-oceans: milestone API, lab adapters, video stub by stephenliang · Pull Request #73490 · code-dot-org/code-dot-org · GitHub
Skip to content

[3/4] lab2-studio-oceans: milestone API, lab adapters, video stub#73490

Draft
stephenliang wants to merge 1 commit into
stephen/lab2-studio-oceans-pr2from
stephen/lab2-studio-oceans-pr3
Draft

[3/4] lab2-studio-oceans: milestone API, lab adapters, video stub#73490
stephenliang wants to merge 1 commit into
stephen/lab2-studio-oceans-pr2from
stephen/lab2-studio-oceans-pr3

Conversation

@stephenliang

@stephenliang stephenliang commented Jun 25, 2026

Copy link
Copy Markdown
Member

Add activities API domain to @code-dot-org/core with milestone POST endpoint. Wire onContinue flow: lab entrypoints call onContinue → milestone POST → navigate to next level or finishUrl. Oceans adapter reads level properties from Lab context (mode→appMode, guides) instead of hardcoded values. Video stub shows level title with a Continue button (MUI Typography + Button).

Lab2-studio-oceans tasks §4 (4.1–4.7). No Rails changes.

Stack: [1/4] #73487 → [2/4] #73488[3/4] ← this PR → [4/4] #73496

Links

  • Design: openspec/changes/lab2-studio-oceans/design.md (on proposal branch)

Testing story

  • Unit tests for milestone API, oceans adapter, video stub
  • Integration test: lesson-complete navigates to finishUrl
  • MSW-mode browser check: anonymous run-through completes all eight levels
  • yarn typecheck + ./tools/hooks/pre-commit pass

Deployment notes

Standard merge-and-deploy. Milestone POST hits existing Rails endpoint — no backend changes needed.

🤖 Generated with Claude Code

@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr3 branch from 9eeadf0 to f34b4e8 Compare June 25, 2026 21:29
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr2 branch from 489b6dc to e6660cc Compare June 25, 2026 21:35
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr3 branch from f34b4e8 to 06f3069 Compare June 25, 2026 21:35
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr2 branch from e6660cc to f8a31ad Compare June 25, 2026 21:58
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr3 branch from 06f3069 to 1e3b228 Compare June 25, 2026 21:58
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr2 branch from f8a31ad to 51feef7 Compare June 25, 2026 23:54
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr3 branch from 1e3b228 to 190b262 Compare June 25, 2026 23:54
@stephenliang stephenliang force-pushed the stephen/lab2-studio-oceans-pr2 branch from 51feef7 to fd5b25d Compare June 26, 2026 02:56
Wire onContinue flow: lab entrypoints call onContinue which POSTs
milestone then navigates to the next level or finishUrl. Add activities
API domain to @code-dot-org/core. Oceans adapter reads level properties
from Lab context (mode, guides). Video stub shows title from level
properties with a Continue button. MSW fixture tracks milestone
completions. Includes 8 new unit tests (activities API + video stub).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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