Skip to content

fix: show all expense categories and fix x-axis format#1015

Merged
TaprootFreak merged 2 commits intodevelopfrom
fix/financial-dashboard-v2
Mar 19, 2026
Merged

fix: show all expense categories and fix x-axis format#1015
TaprootFreak merged 2 commits intodevelopfrom
fix/financial-dashboard-v2

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Expenses chart: Add Bank and Kraken series so all cost categories are visible
  • X-axis format: Use dd MMM HH:mm for short time ranges (<4 days) instead of dd MMM yy
  • Optional chaining: Prevent runtime errors for API responses without bank/kraken fields

Replaces #1006 (clean cherry-pick without duplicated commits from #978)

Depends on: DFXswiss/api#3438

Test plan

  • Verify expenses chart shows all 5 categories (Referral, Binance, Blockchain, Bank, Kraken)
  • Verify 24h view shows time (HH:mm) on x-axis
  • Verify 1W/1M view still shows date format (dd MMM yy)

…harts

Add bank and kraken series to the expenses chart so all cost categories
are visible. Use time-aware x-axis format (HH:mm for short ranges,
dd MMM yy for longer ranges) to avoid repeated date labels in 24h/3D views.
Ensures backward compatibility with API responses that may not yet
include the new bank and kraken fields in the minus object.
@TaprootFreak TaprootFreak marked this pull request as ready for review March 19, 2026 16:51
@TaprootFreak TaprootFreak merged commit 0970e5c into develop Mar 19, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the fix/financial-dashboard-v2 branch March 19, 2026 20:04
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