Skip to content

Fix high priority issues and add useDockLayout tests#6

Closed
mass2527 wants to merge 1 commit intomainfrom
claude/review-codebase-critical-tasks-kjlTo
Closed

Fix high priority issues and add useDockLayout tests#6
mass2527 wants to merge 1 commit intomainfrom
claude/review-codebase-critical-tasks-kjlTo

Conversation

@mass2527
Copy link
Owner

  • Fix error thrown on unmounted container during resize by returning
    early instead of throwing
  • Add validation for container size to prevent negative dimensions
    when size <= 0
  • Add validation for split ratios to clamp values to 0-1 bounds
  • Fix useResizeObserver to gracefully handle unattached refs
  • Add comprehensive test suite for useDockLayout hook (17 tests)
  • Update existing test to set valid size before resizing

- Fix error thrown on unmounted container during resize by returning
  early instead of throwing
- Add validation for container size to prevent negative dimensions
  when size <= 0
- Add validation for split ratios to clamp values to 0-1 bounds
- Fix useResizeObserver to gracefully handle unattached refs
- Add comprehensive test suite for useDockLayout hook (17 tests)
- Update existing test to set valid size before resizing
@claude
Copy link

claude bot commented Jan 22, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@mass2527 mass2527 closed this Jan 22, 2026
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.

2 participants

Comments