test(web): add unit tests for tree transformation utilities
- Tests buildTree hierarchical nesting, dependency identification, and ID sorting
- Tests flattenTree depth-first traversal
- Tests countTaskStats recursive status counting
- All 11 tests passing, including edge cases
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>