Commit e7a2697
fix: file-tree returns full depth for treemap drill-down
The /api/file-tree endpoint was capping depth at maxDepth (10), causing
directories deeper than 10 levels to have empty children. The frontend
treemap couldn't drill into them and directory node counts were wrong.
Fix: when no depth param is passed, return the full tree (null depth =
unlimited). The treemap needs the complete hierarchy for drill-down and
correct proportional sizing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7570eb4 commit e7a2697
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- src
- main/java/io/github/randomcodespace/iq/api
- test/java/io/github/randomcodespace/iq/api
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| |||
0 commit comments