Skip to content

Add direct angle controls and restore streamlined exports - #115

Merged
a-baran-orhan merged 5 commits into
mainfrom
codex/direct-angle-controls
Aug 1, 2026
Merged

Add direct angle controls and restore streamlined exports#115
a-baran-orhan merged 5 commits into
mainfrom
codex/direct-angle-controls

Conversation

@a-baran-orhan

@a-baran-orhan a-baran-orhan commented Jul 29, 2026

Copy link
Copy Markdown
Member

What changed

  • Make supported Posecode joint names clickable in CodeMirror and resolve joint groups to their concrete bones.
  • Add an inline − / angle / + spinner for authored joint angles, constrained to the shared range-of-motion limits.
  • Add a renderer selection API and live Xbot/classic-figure markers that follow selected joints without affecting bounds, grounding, exports, or diagnostics.
  • Show the selected joint in the viewport HUD and clear the selection when the source context changes.
  • Add focused tests for source target detection, click ranges, group ROM intersections, clamping, and numeric formatting.
  • Restore the streamlined playground header: one accessible Export menu for BVH/glTF and a GitHub action that opens the repository.

Why

Authors who are not animators should be able to explore a Posecode movement without already knowing anatomical angle values. This brings Bret Victor-style direct manipulation to the text-first workflow while preserving the source document as the single source of truth.

User impact

Clicking a joint name now identifies it on the 3D figure. Clicking its numeric angle turns the value into an accessible spinner; every change updates the source and re-renders the movement immediately.

The playground also matches the deployed header again: authors see one Export action instead of two competing download buttons, and GitHub opens the project repository rather than issue creation.

Root cause

The streamlined header existed in commit d5ec0db, but that commit remained on agent/streamline-playground-actions and never reached main. Branches created from main therefore restored the older two-button/issue-link UI. This PR carries that commit forward and adds regression coverage.

Validation

  • npm run typecheck
  • npm run build
  • npm test -- --run playground/test/playground-actions.test.ts playground/test/direct-manipulation.test.ts playground/test/analytics-wiring.test.ts packages/posecode-render/test/render.test.ts (56 tests passed)
  • Manual browser verification with the production Xbot: selected pelvis marker rendered and 45° → 46° updated the live pose
  • Local/production header comparison: one Export menu with BVH + glTF/GLB options and the repository GitHub URL

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
posecode Ready Ready Preview Aug 1, 2026 3:20pm

@a-baran-orhan a-baran-orhan changed the title Add direct angle manipulation controls Add direct angle controls and restore streamlined exports Jul 29, 2026
@a-baran-orhan
a-baran-orhan marked this pull request as ready for review August 1, 2026 14:47
@a-baran-orhan
a-baran-orhan merged commit c955377 into main Aug 1, 2026
3 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.

1 participant