Skip to content

fix: Display breadcrumb dimensions in drill-down order#29

Merged
wesm merged 1 commit intomainfrom
time-breadcrumb
Nov 7, 2025
Merged

fix: Display breadcrumb dimensions in drill-down order#29
wesm merged 1 commit intomainfrom
time-breadcrumb

Conversation

@wesm
Copy link
Owner

@wesm wesm commented Nov 7, 2025

When drilling into a time period from a subgrouping view (e.g., Merchants > Amazon (by Time) → 2024), the breadcrumb now correctly shows "Merchants > Amazon > 2024" instead of "Time > 2024 > Merchants

Amazon". This makes navigation clearer and ensures Escape key
behavior matches the visual hierarchy.

Changes:

  • Added _get_drill_down_order() helper to determine dimension order from navigation history
  • Refactored get_breadcrumb() to display dimensions in drill-down sequence
  • Added comprehensive tests for various drill-down scenarios

When drilling into a time period from a subgrouping view (e.g.,
Merchants > Amazon (by Time) → 2024), the breadcrumb now correctly
shows "Merchants > Amazon > 2024" instead of "Time > 2024 > Merchants
> Amazon". This makes navigation clearer and ensures Escape key
behavior matches the visual hierarchy.

Changes:
- Added _get_drill_down_order() helper to determine dimension order
  from navigation history
- Refactored get_breadcrumb() to display dimensions in drill-down
  sequence
- Added comprehensive tests for various drill-down scenarios

All tests pass (911/911), type checking clean, coverage maintained.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying moneyflow with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d95aca
Status: ✅  Deploy successful!
Preview URL: https://7e963310.moneyflow-6wi.pages.dev
Branch Preview URL: https://time-breadcrumb.moneyflow-6wi.pages.dev

View logs

@wesm wesm merged commit 80805b0 into main Nov 7, 2025
6 checks passed
@wesm wesm deleted the time-breadcrumb branch November 7, 2025 13:05
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.

1 participant