Skip to content

[FEATURE] Add Expense Categories Breakdown Chart to Dashboard #175

Description

@AryanYadav215

name: 💡 Feature Request
about: Suggest an idea or enhancement for FlipTrack
title: "[FEATURE] Add Expense Categories Breakdown Chart to Dashboard"
labels: enhancement, ECSoC'26
assignees: ""

💡 Feature Description

Add an Expense Categories Breakdown chart (donut/pie chart or horizontal bar chart) to the Dashboard that visually shows the distribution of expenses by type[cite: 4]. Each category should be color-coded and show the percentage and dollar amount[cite: 4].

Problem Statement

The Dashboard currently shows revenue/expense data in CashFlowChart and SalesByMarketplacePie, but there is no dedicated chart visualizing how expenses break down by category (Shipping, Marketplace Fees, Bot Fees, Supplies, Other)[cite: 4]. This makes it hard for resellers to quickly identify where their money is going[cite: 4].

Proposed Solution

The Dashboard loader already fetches all expenses, so they just need to be grouped by the type field (which uses the ExpenseType enum)[cite: 4].

  • Use recharts (already installed in the project) to build a <PieChart> with <Pie> and <Cell> components for colors[cite: 4].
  • Place the new chart in the dashboard grid alongside existing charts[cite: 4].
  • Use the existing CSS variable color palette for category colors[cite: 4].

Files to Modify:

  • app/routes/dashboard.tsx (aggregate expense data in loader, add component to layout)[cite: 4]
  • New: app/blocks/dashboard/expense-categories-chart.tsx[cite: 4]
  • New: app/blocks/dashboard/expense-categories-chart.module.css[cite: 4]

Alternative Approaches

A horizontal bar chart could also work, but a donut/pie chart matches the existing UI patterns used for marketplace sales[cite: 4].

Mockups / Wireframes

N/A

Additional Context

N/A

Are You Willing to Contribute?

  • Yes, I'd like to work on this!
  • I'd like to help, but I need guidance
  • No, I'm just suggesting

Activity

  1. Atharv094 commented on Aug 8, 2026

    @Atharv094

    Hi! I'd love to work on this. I can aggregate the expense data by ExpenseType in dashboard.tsx and build the pie chart block using recharts.

    Could you please assign this issue to me? Also, is this under the ECSoC program? If so, please add the "EcSoc26" label. Thanks!

  2. github-actions commented on Aug 8, 2026

    @github-actions

    Hi @Atharv094! 👋

    Thank you for your interest in contributing to this repository! Please wait until a maintainer officially assigns you to this issue before opening a Pull Request.

    While you wait, please consider starring ⭐ this repository to show your support! We review requests regularly and will assign it as soon as possible if it's available. Happy coding! 🚀

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions