Skip to content

Add client-side opening validation to DesignPanel#116

Merged
toddaheath merged 1 commit intomainfrom
feature/opening-client-validation
Mar 2, 2026
Merged

Add client-side opening validation to DesignPanel#116
toddaheath merged 1 commit intomainfrom
feature/opening-client-validation

Conversation

@toddaheath
Copy link
Owner

Summary

  • Show inline errors when an opening doesn't fit on its wall
  • Opening card border turns red on validation failure
  • Width+offset vs wall width and height+sill vs wall height checks
  • Side walls (Left/Right) correctly use shed depth
  • 4 new DesignPanel tests covering all validation scenarios

Test plan

  • Frontend tests pass (138 tests, +4 new)
  • Lint passes
  • Manual: Add a door wider than the front wall, confirm red border and error message
  • Manual: Switch wall to Left, confirm depth is used for validation

🤖 Generated with Claude Code

Show inline errors when an opening's width+offset exceeds the wall
width or height+sill exceeds the wall height. The opening card
border turns red and a caption explains the issue. Side walls
correctly use the shed's depth instead of width.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddaheath toddaheath merged commit 399c6ef into main Mar 2, 2026
17 checks passed
@toddaheath toddaheath deleted the feature/opening-client-validation branch March 2, 2026 13:01
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