[PR #2806] [MERGED] Added Year comparison feature. #4520

Closed
opened 2026-02-28 20:57:00 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2806
Author: @Crazypkr1099
Created: 5/29/2024
Status: Merged
Merged: 6/10/2024
Merged by: @carkom

Base: masterHead: spendingGraphYear


📝 Commits (10+)

  • e6e8818 Added Year comparsion feature. Also fixed bug with greater than 28 days.
  • 0a955e6 Removed comments and console.logs
  • 3b7f6fe Create 2806.md
  • c3d5202 Cleaned up code
  • 1d96a6e Merge branch 'spendingGraphYear' of https://github.com/Crazypkr1099/actual into spendingGraphYear
  • 0455cf9 Merge remote-tracking branch 'origin/master' into spendingGraphYear
  • 4b9fbb0 Hide's graph if no data, and hides average, last month or last year if no data.
  • 8d0d64a Apply suggestions from code review
  • 2b38a0d Fixed spent MTD and last MTD. Added in all suggestions from carkom.
  • 8ebda59 Update 2806.md

📊 Changes

6 files changed (+172 additions, -84 deletions)

View changed files

📝 packages/desktop-client/src/components/reports/graphs/SpendingGraph.tsx (+31 -9)
📝 packages/desktop-client/src/components/reports/reports/Spending.tsx (+101 -65)
📝 packages/desktop-client/src/components/reports/reports/SpendingCard.tsx (+10 -4)
📝 packages/desktop-client/src/components/reports/spreadsheets/spending-spreadsheet.ts (+23 -6)
📝 packages/loot-core/src/types/models/reports.d.ts (+1 -0)
upcoming-release-notes/2806.md (+6 -0)

📄 Description

Year feature compares your spending to the previous year if you have data. If you do not have data, it won't crash, but the graph won't show any information.

This is my first ever real coding using React ;)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/2806 **Author:** [@Crazypkr1099](https://github.com/Crazypkr1099) **Created:** 5/29/2024 **Status:** ✅ Merged **Merged:** 6/10/2024 **Merged by:** [@carkom](https://github.com/carkom) **Base:** `master` ← **Head:** `spendingGraphYear` --- ### 📝 Commits (10+) - [`e6e8818`](https://github.com/actualbudget/actual/commit/e6e8818ac8bcb54805b1d35e848e6d34e4bb877a) Added Year comparsion feature. Also fixed bug with greater than 28 days. - [`0a955e6`](https://github.com/actualbudget/actual/commit/0a955e68e8b9003a277a581ae21cfb929dee5569) Removed comments and console.logs - [`3b7f6fe`](https://github.com/actualbudget/actual/commit/3b7f6feca979febf32f475ea19ead5f273850242) Create 2806.md - [`c3d5202`](https://github.com/actualbudget/actual/commit/c3d52024be67c38f53743daafae52e4031294dd8) Cleaned up code - [`1d96a6e`](https://github.com/actualbudget/actual/commit/1d96a6e08c147e5e8d8ec5fbb714f3c38d8d1bbb) Merge branch 'spendingGraphYear' of https://github.com/Crazypkr1099/actual into spendingGraphYear - [`0455cf9`](https://github.com/actualbudget/actual/commit/0455cf98f166152d22e6753098ca2d756caa7329) Merge remote-tracking branch 'origin/master' into spendingGraphYear - [`4b9fbb0`](https://github.com/actualbudget/actual/commit/4b9fbb09928520da0c76682ece42c8e79dd0ff44) Hide's graph if no data, and hides average, last month or last year if no data. - [`8d0d64a`](https://github.com/actualbudget/actual/commit/8d0d64ab312457fa11e636effa64978a8eef07bb) Apply suggestions from code review - [`2b38a0d`](https://github.com/actualbudget/actual/commit/2b38a0db3535ad0cea33210a393489e0ca895e2d) Fixed spent MTD and last MTD. Added in all suggestions from carkom. - [`8ebda59`](https://github.com/actualbudget/actual/commit/8ebda591fc95993a5c0da91d0f93267172b463ed) Update 2806.md ### 📊 Changes **6 files changed** (+172 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/reports/graphs/SpendingGraph.tsx` (+31 -9) 📝 `packages/desktop-client/src/components/reports/reports/Spending.tsx` (+101 -65) 📝 `packages/desktop-client/src/components/reports/reports/SpendingCard.tsx` (+10 -4) 📝 `packages/desktop-client/src/components/reports/spreadsheets/spending-spreadsheet.ts` (+23 -6) 📝 `packages/loot-core/src/types/models/reports.d.ts` (+1 -0) ➕ `upcoming-release-notes/2806.md` (+6 -0) </details> ### 📄 Description Year feature compares your spending to the previous year if you have data. If you do not have data, it won't crash, but the graph won't show any information. This is my first ever real coding using React ;) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:57:00 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#4520