[PR #1743] [MERGED] Budget tsx refactor #53236

Closed
opened 2026-04-30 21:45:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1743
Author: @Jod929
Created: 9/27/2023
Status: Merged
Merged: 10/6/2023
Merged by: @MatissJanis

Base: masterHead: budget-tsx-refactor


📝 Commits (10+)

📊 Changes

8 files changed (+104 additions, -17 deletions)

View changed files

📝 packages/desktop-client/src/components/budget/IncomeGroup.tsx (+20 -1)
📝 packages/desktop-client/src/components/budget/IncomeHeader.tsx (+2 -4)
📝 packages/desktop-client/src/components/budget/MonthsContext.tsx (+26 -4)
📝 packages/desktop-client/src/components/budget/RenderMonths.tsx (+21 -5)
📝 packages/desktop-client/src/components/budget/SidebarGroup.tsx (+27 -2)
📝 packages/desktop-client/src/components/budget/index.js (+1 -0)
📝 packages/desktop-client/src/components/table.tsx (+1 -1)
upcoming-release-notes/1743.md (+6 -0)

📄 Description

Refactor the following to tsx: IncomeGroup, IncomeHeader, MonthsContext, RenderMonths, SidebarGroup.

Related to issue #1483

I had some trouble with RenderMonths, specifically typing 'Component' and returning a JSX.Element when a JSX.Element[] was the expected return type.

I also had an issue with MonthsContext and eslint not recognizing that 'getValidMonthBounds' and 'MonthsProvider' were being imported and used elsewhere.

If anyone has suggestions on these or anything else please let me know and I can fix it right away.


🔄 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/1743 **Author:** [@Jod929](https://github.com/Jod929) **Created:** 9/27/2023 **Status:** ✅ Merged **Merged:** 10/6/2023 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `budget-tsx-refactor` --- ### 📝 Commits (10+) - [`23ea8a3`](https://github.com/actualbudget/actual/commit/23ea8a311fbafd6c729f21aef97b70d33190bea8) refactor MonthsContext to tsx - [`6004788`](https://github.com/actualbudget/actual/commit/6004788f11cdcfce1b3bb5de921da736bb5ba6ee) work on RenderMonths - [`e2b538e`](https://github.com/actualbudget/actual/commit/e2b538e08deb566283e3dadd98687887cabbc193) working solution for RenderMonths - [`d034141`](https://github.com/actualbudget/actual/commit/d0341415ad0915b3e845db5bb93eaf61715eaecb) working on IncomeGroup - [`9bee7bc`](https://github.com/actualbudget/actual/commit/9bee7bceaf6d86d8401897ad731ca852b250e66e) refactor IncomeGroup to tsx - [`2c934ed`](https://github.com/actualbudget/actual/commit/2c934ed4835da6d0a6143ea0084b4a10a92f3861) refactor SideBarGroup to tsx - [`ccd8235`](https://github.com/actualbudget/actual/commit/ccd8235ca83e53764ed23bd5e2b4eab47c492aab) fix SidebarGroup formatter type - [`8f76cd8`](https://github.com/actualbudget/actual/commit/8f76cd801ce5434ae7b8973f0f2f4e71d2699969) add release notes - [`210012b`](https://github.com/actualbudget/actual/commit/210012b8658da60def391881fd5cb06cb3daec25) Regression fixes (#1752) - [`eede66e`](https://github.com/actualbudget/actual/commit/eede66ebb72cc1934ee23ab1c265cf74be27b1f5) :bookmark: (23.10.0) (#1757) ### 📊 Changes **8 files changed** (+104 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/budget/IncomeGroup.tsx` (+20 -1) 📝 `packages/desktop-client/src/components/budget/IncomeHeader.tsx` (+2 -4) 📝 `packages/desktop-client/src/components/budget/MonthsContext.tsx` (+26 -4) 📝 `packages/desktop-client/src/components/budget/RenderMonths.tsx` (+21 -5) 📝 `packages/desktop-client/src/components/budget/SidebarGroup.tsx` (+27 -2) 📝 `packages/desktop-client/src/components/budget/index.js` (+1 -0) 📝 `packages/desktop-client/src/components/table.tsx` (+1 -1) ➕ `upcoming-release-notes/1743.md` (+6 -0) </details> ### 📄 Description Refactor the following to tsx: IncomeGroup, IncomeHeader, MonthsContext, RenderMonths, SidebarGroup. Related to issue #1483 I had some trouble with RenderMonths, specifically typing 'Component' and returning a JSX.Element when a JSX.Element[] was the expected return type. I also had an issue with MonthsContext and eslint not recognizing that 'getValidMonthBounds' and 'MonthsProvider' were being imported and used elsewhere. If anyone has suggestions on these or anything else please let me know and I can fix it right away. --- <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-04-30 21:45:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#53236