8000 Refactor: Create separate components for Today's and Monthly spending charts · Issue #21 · laminko/SpendCheck · GitHub
[go: up one dir, main page]

Skip to content

Refactor: Create separate components for Today's and Monthly spending charts #21

Closed

Description

@laminko

Summary

Currently the Graph page contains two charts implemented directly in the component. We should extract these into separate reusable components for better code organization and maintainability.

Tasks

  • Create TodaysSpendingChart.vue component for doughnut chart
  • Create MonthlySpendingChart.vue component for daily bar chart
  • Update Graph.vue to use the new chart components
  • Ensure props and data flow work correctly
  • Maintain all existing styling and functionality
  • Test both charts work as expected

Acceptance Criteria

  • Both charts are extracted into separate components
  • Graph.vue is cleaner and more maintainable
  • All existing functionality is preserved
  • Charts are properly responsive
  • Peak spending info is included in monthly chart component

Current Implementation

  • Today's spending: Doughnut chart with categories
  • Monthly spending: Bar chart with daily data and peak spending info

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Jun 14, 2025
    6c6a03f
  2. added 2 commits that reference this issue on Jun 22, 2025
    a493fc7
    87f0d80
  3. added 2 commits that reference this issue on Jun 30, 2025
    0291a56
    dd9343c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0