Skip to content

refactor: consolidate tree rendering logic#29

Merged
elitan merged 1 commit intomainfrom
refactor/consolidate-tree-rendering
Dec 26, 2025
Merged

refactor: consolidate tree rendering logic#29
elitan merged 1 commit intomainfrom
refactor/consolidate-tree-rendering

Conversation

@elitan
Copy link
Owner

@elitan elitan commented Dec 26, 2025

Summary

  • Create TreeRenderer utility (src/utils/tree-renderer.ts) with reusable functions for building and rendering branch trees
  • Refactor branch/delete.ts, project/delete.ts, and branch/list.ts to use the new utility
  • Reduce ~150 lines of duplicated tree rendering code to ~100 lines of shared utility

Closes #16

Test plan

  • bun run build succeeds
  • All tests pass (bun run test)

🤖 Generated with Claude Code

Create TreeRenderer utility with reusable functions for building and
rendering branch trees, eliminating duplicated code across delete and
list commands.

Closes #16

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@elitan elitan merged commit f2ac521 into main Dec 26, 2025
2 checks passed
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.

refactor: consolidate tree rendering logic

1 participant