Skip to content

Conversation

@anth-volk
Copy link
Contributor

Summary

  • Add _find_breakdown_parent() to walk up tree and find breakdown ancestor
  • Add _collect_dimension_values() to collect dimension values along path
  • Add _format_dimension_value() to format values with semantic labels
  • Support breakdown_labels metadata for range() dimensions

This enables human-readable labels like "SNAP max allotment (Contiguous US, Household size 1)" instead of "(CONTIGUOUS_US, 1)".

Test plan

  • Unit tests added for nested breakdowns
  • Tests for breakdown_labels fallback
  • Verified enum lookup takes priority over breakdown_labels

🤖 Generated with Claude Code

anth-volk and others added 2 commits January 6, 2026 22:34
- Add _find_breakdown_parent() to walk up tree and find breakdown ancestor
- Update _generate_breakdown_label() to handle nested breakdowns
- Add _collect_dimension_values() to collect all dimension values along path
- Add _format_dimension_value() to format values with semantic labels
- Support breakdown_labels metadata for range() dimensions
- Add comprehensive tests for nested breakdowns and breakdown_labels

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@anth-volk anth-volk force-pushed the fix/apply-labels-to-breakouts branch from c4583bf to 6f52cff Compare January 7, 2026 15:21
@anth-volk anth-volk closed this Jan 7, 2026
@anth-volk anth-volk deleted the fix/apply-labels-to-breakouts branch January 7, 2026 15:27
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