Fix top animation system regressions#1930
Conversation
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/b0878188-e303-4720-ae1a-b85f79bc09d9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/b0878188-e303-4720-ae1a-b85f79bc09d9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/b0878188-e303-4720-ae1a-b85f79bc09d9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/b0878188-e303-4720-ae1a-b85f79bc09d9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/b0878188-e303-4720-ae1a-b85f79bc09d9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/b0878188-e303-4720-ae1a-b85f79bc09d9 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Dependency Reviewโ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
๐ฏ Accessibility Test ResultsWCAG 2.1 Level AA Compliance Tests
Components Tested
Test Framework
|
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
| hit: "hit", | ||
| stance_change: "stance_change", | ||
| stance_side_switch: "stance_change", // Map to stance_change animation (mirroring guard) | ||
| stance_side_switch: "stance_side_switch", // Dedicated leftโright foot-forward switch |
| it("should map stance side switch to dedicated side-switch animation", () => { | ||
| const result = animationStateToPlayerAnimation( | ||
| AnimationState.STANCE_SIDE_SWITCH | ||
| ); | ||
| expect(result).toBe("stance_side_switch"); | ||
| }); |
| ["gam_idle_flowing", GAM_STANCE_ANIMATIONS.idle], | ||
| ["gam_yielding_sidestep", GAM_STANCE_ANIMATIONS.movement.yieldingSidestep], | ||
| ["gam_flowing_retreat_step", GAM_STANCE_ANIMATIONS.movement.flowingRetreat], | ||
| ["gam_water_flow_counter", GAM_STANCE_ANIMATIONS.techniques.waterFlowCounter], | ||
| ["gam_flowing_takedown", GAM_STANCE_ANIMATIONS.techniques.flowingTakedown], | ||
| ["gam_counter", GAM_TECHNIQUE_ANIMATIONS.counter], | ||
| ["gam_takedown", GAM_TECHNIQUE_ANIMATIONS.takedown], | ||
| ...GAN_STANCE_ANIMATIONS, // โถ Mountain: Defensive mastery | ||
| ...GAN_TECHNIQUE_ANIMATIONS, // โถ Mountain techniques | ||
| ...GON_TECHNIQUE_ANIMATIONS, // โท Earth: Ssireum throws and ground control |
| describe("getAnimationDurationOrFallback", () => { | ||
| it("should return registered animation duration when metadata exists", () => { | ||
| expect(getAnimationDurationOrFallback("gon_earth_embrace")).toBe( | ||
| getAnimation("gon_earth_embrace")?.duration, | ||
| ); | ||
| }); | ||
|
|
||
| it("should return shared fallback duration for missing animation metadata", () => { | ||
| expect(getAnimationDurationOrFallback("missing_animation")).toBe(0.55); | ||
| expect(getAnimationDurationOrFallback()).toBe(0.55); | ||
| }); |
| // Animation should always be triggered with a technique-aware duration. | ||
| expect(mockPlayerAnimation.transitionToAttack).toHaveBeenCalledWith(0.55); | ||
| }); |
| case "stance_side_switch": | ||
| player1Animation.transitionTo(AnimationState.STANCE_SIDE_SWITCH); | ||
| handleStanceSideSwitch(PLAYER_ONE_INDEX); | ||
| break; |
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/7d68b56b-ff01-4e92-9573-b0d5c1dad4ed Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
๐ฏ Accessibility Test ResultsWCAG 2.1 Level AA Compliance Tests
Components Tested
Test Framework
|
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/7d68b56b-ff01-4e92-9573-b0d5c1dad4ed Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
๐ฏ Accessibility Test ResultsWCAG 2.1 Level AA Compliance Tests
Components Tested
Test Framework
|
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/7d68b56b-ff01-4e92-9573-b0d5c1dad4ed Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
๐ฏ Accessibility Test ResultsWCAG 2.1 Level AA Compliance Tests
Components Tested
Test Framework
|
Applied the review feedback in ddfa6e1: side-switch now transitions through STANCE_SIDE_SWITCH while resolving to a named renderable stance transition clip, Gon ID lookups now align with dedicated Gon clips, and duration tests use the shared fallback constant. Validation passed ( |
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
Uh oh!
There was an error while loading. Please reload this page.