Skip to content

Commit

Permalink
Remove category spending report (#2344)
Browse files Browse the repository at this point in the history
It has been superseded by the new custom reports feature.

Signed-off-by: Johannes Löthberg <[email protected]>
  • Loading branch information
kyrias authored Feb 11, 2024
1 parent 53a6100 commit 65372e8
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 703 deletions.
6 changes: 0 additions & 6 deletions packages/desktop-client/src/components/reports/Overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ import { styles } from '../../style';
import { View } from '../common/View';

import { CashFlowCard } from './reports/CashFlowCard';
import { CategorySpendingCard } from './reports/CategorySpendingCard';
import { CustomReportCard } from './reports/CustomReportCard';
import { NetWorthCard } from './reports/NetWorthCard';
import { SankeyCard } from './reports/SankeyCard';

export function Overview() {
const customReports = useReports();
const categorySpendingReportFeatureFlag = useFeatureFlag(
'categorySpendingReport',
);
const sankeyFeatureFlag = useFeatureFlag('sankeyReport');

const customReportsFeatureFlag = useFeatureFlag('customReports');
Expand Down Expand Up @@ -45,14 +41,12 @@ export function Overview() {
flexDirection: 'row',
}}
>
{categorySpendingReportFeatureFlag && <CategorySpendingCard />}
{sankeyFeatureFlag && <SankeyCard />}
{customReportsFeatureFlag ? (
<CustomReportCard reports={customReports} />
) : (
<div style={{ flex: 1 }} />
)}
{!categorySpendingReportFeatureFlag && <div style={{ flex: 1 }} />}
{!sankeyFeatureFlag && <div style={{ flex: 1 }} />}
</View>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Route, Routes } from 'react-router-dom';

import { Overview } from './Overview';
import { CashFlow } from './reports/CashFlow';
import { CategorySpending } from './reports/CategorySpending';
import { CustomReport } from './reports/CustomReport';
import { NetWorth } from './reports/NetWorth';
import { Sankey } from './reports/Sankey';
Expand All @@ -14,7 +13,6 @@ export function ReportRouter() {
<Route path="/" element={<Overview />} />
<Route path="/net-worth" element={<NetWorth />} />
<Route path="/cash-flow" element={<CashFlow />} />
<Route path="/category-spending" element={<CategorySpending />} />
<Route path="/custom" element={<CustomReport />} />
<Route path="/sankey" element={<Sankey />} />
</Routes>
Expand Down
86 changes: 0 additions & 86 deletions packages/desktop-client/src/components/reports/Tooltip.jsx

This file was deleted.

This file was deleted.

68 changes: 0 additions & 68 deletions packages/desktop-client/src/components/reports/graphs/common.tsx

This file was deleted.

Loading

0 comments on commit 65372e8

Please sign in to comment.