feat: add RigPanel UI to drive a retarget (clip picker, diagnostic preview, write handoff) - #6139
Merged
Merged
Conversation
…eview, write handoff) The retarget lane shipped server-side in atomantic#5893 (POST /api/rigging/models/:id/retarget, GET /api/rigging/clips) but had no UI — the only way to animate a rigged character was to call the endpoint by hand. - apiRigging.js: adds listRiggingClips() and retargetImageTo3dModel(), mirroring the existing getRiggingReadiness()/rigImageTo3dModel() contract (updated model record on success, the server's measured sentence surfaced verbatim on refusal). - RigPanel.jsx: once a rig is ready, fetches the clip library (explaining an empty roster rather than rendering a dead picker), runs a diagnostic preview showing the proposed head-zone cleanup vs its cap and the motion numbers, and offers an explicit "Apply cleanup" write action — refused-with-reason instead of offered when the proposal is over cap. The published animation's download link appears once a write run lands, same pattern as the existing rig section. Refs atomantic#6065
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/rigging/models/:id/retarget,GET /api/rigging/clips) but had no UI — the only way to animate a rigged character was to call the endpoint by hand.apiRigging.js: addslistRiggingClips()andretargetImageTo3dModel(), mirroring the existinggetRiggingReadiness()/rigImageTo3dModel()contract.RigPanel.jsx: once a rig is ready, fetches the clip library (an empty roster gets an explaining line, not a dead picker), runs a diagnostic preview showing the proposed head-zone cleanup vs its cap and the motion numbers, and offers an explicit "Apply cleanup" write action.RIGGING_SKELETON_INCOMPATIBLE,RIGGING_RETARGET_GATE_FAILED, …), same contract as the existing rig section.record.retargetthe way the panel already readsrecord.rig.Test plan
RigPanel.test.jsx— new tests: empty clip library explains itself, diagnostic preview shows proposed cleanup with nothing written yet, over-cap proposal refuses the write action with a reason instead of offering it, write handoff from a diagnostic result publishes and shows the download link, gate refusal renders the server's sentence verbatim.npx vitest run src/components/media/RigPanel.test.jsx— 9/9 passing.npx vitest run src/services/index.test.js— barrel/README parity check passes.biome lintclean on all four changed files.Closes #6065
🤖 Generated with Claude Code