fix(mural): send API-compliant arrow widget payload#2136
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2136 +/- ##
==========================================
- Coverage 81.24% 79.04% -2.21%
==========================================
Files 127 85 -42
Lines 18831 13409 -5422
Branches 12 0 -12
==========================================
- Hits 15300 10599 -4701
+ Misses 3528 2810 -718
+ Partials 3 0 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Review SummaryThis fix corrects arrow widget payload schema to match Mural API requirements. Key Changes
Impact
Verification Checklist
|
rezatnoMsirhC
left a comment
There was a problem hiding this comment.
Thank you for your contribution! Before we proceed with the review, could you please update the PR description to follow the repository's PR template?
A few things to address:
- Replace the current headings with the template's sections:
## Description,## Related Issue(s),## Type of Change,## Testing,## Checklist, and## Security Considerations. - Check the appropriate boxes under Type of Change (this looks like a "Bug fix" and "Script/automation" change).
- Move
Fixes #1941into the## Related Issue(s)section. - Fill in the
## Testingsection describing how you tested the changes. - Complete the
## Checklistand## Security Considerationscheckboxes.
No rush, and thanks again for taking the time to fix this!
Can do! |
Pull Request
Description
Fixes the Mural arrow widget payload shape to match API expectations.
The payload builder now emits normalized origin coordinates, non-zero bounding box dimensions, and points anchored to the normalized origin so arrow creation requests pass schema validation.
Related Issue(s)
Fixes #1941
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md)Other:
.ps1,.sh,.py)Testing
.github/skills/experimental/mural/tests/test_mural_helpers.pyfor:x1 > x2)x1 == x2)y1 == y2).github/skills/experimental/mural/tests/test_mural_commands.pyfor payload contract alignment.pytestin the active.venv; CI remains the source of truth for full test execution.Checklist
Required Checks
AI Artifact Contributions
/prompt-analyzeto review contributionprompt-builderreviewRequired Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run validate:skillsnpm run lint:md-linksnpm run lint:psnpm run plugin:generatenpm run docs:testSecurity Considerations
Additional Notes
_build_arrow_bodyand adding edge-case test coverage for degenerate dimensions.