[PR #3685] [MERGED] useTransactions hook to simplify loading of transactions #5002

Closed
opened 2026-02-28 21:04:30 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3685
Author: @joel-jeremy
Created: 10/17/2024
Status: Merged
Merged: 11/12/2024
Merged by: @joel-jeremy

Base: masterHead: useTransactions-hook


📝 Commits (10+)

📊 Changes

37 files changed (+1249 additions, -769 deletions)

View changed files

📝 .eslintrc.js (+6 -1)
📝 packages/desktop-client/e2e/accounts.mobile.test.js (+7 -0)
📝 packages/desktop-client/e2e/accounts.test.js (+3 -0)
📝 packages/desktop-client/e2e/page-models/account-page.js (+4 -0)
📝 packages/desktop-client/e2e/page-models/mobile-account-page.js (+8 -0)
📝 packages/desktop-client/e2e/page-models/mobile-accounts-page.js (+5 -0)
📝 packages/desktop-client/src/components/ManageRules.tsx (+5 -2)
📝 packages/desktop-client/src/components/accounts/Account.tsx (+39 -45)
📝 packages/desktop-client/src/components/accounts/Balance.jsx (+7 -2)
📝 packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx (+120 -133)
📝 packages/desktop-client/src/components/mobile/accounts/Accounts.jsx (+1 -1)
📝 packages/desktop-client/src/components/mobile/budget/CategoryTransactions.jsx (+50 -84)
📝 packages/desktop-client/src/components/mobile/transactions/TransactionList.jsx (+0 -4)
📝 packages/desktop-client/src/components/modals/EditRuleModal.jsx (+14 -14)
📝 packages/desktop-client/src/components/modals/ScheduledTransactionMenuModal.tsx (+13 -11)
📝 packages/desktop-client/src/components/rules/ScheduleValue.tsx (+15 -3)
📝 packages/desktop-client/src/components/schedules/ScheduleDetails.jsx (+8 -2)
📝 packages/desktop-client/src/components/schedules/ScheduleLink.tsx (+12 -11)
📝 packages/desktop-client/src/components/schedules/SchedulesTable.tsx (+5 -2)
📝 packages/desktop-client/src/components/schedules/index.tsx (+53 -44)

...and 17 more files

📄 Description

Create a new useTransactions hook to simplify loading of transactions and preview transactions.

The mobile transactions page have been migrated to use the new hook. Will try to use it on the desktop transaction list as well if I am able to find time because it first will need to be migrated to a functional component.

Having both desktop and mobile use the same hook to load the transactions would make the behavior more consistent on both views and would be easier to maintain.


🔄 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/3685 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 10/17/2024 **Status:** ✅ Merged **Merged:** 11/12/2024 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `useTransactions-hook` --- ### 📝 Commits (10+) - [`2f3ce3c`](https://github.com/actualbudget/actual/commit/2f3ce3c0e58dd889487a5aa57b4432f125c03944) useTransactions hook to load transactions - [`d1a4ed7`](https://github.com/actualbudget/actual/commit/d1a4ed768147a4ec2f45ee8bf10f5701c7a8cb59) Release notes + lint fix - [`8dd5d9a`](https://github.com/actualbudget/actual/commit/8dd5d9a71882380de34347e69509efb5e75f3570) Update useQuery - [`61079b0`](https://github.com/actualbudget/actual/commit/61079b0946f95721e3dd56a064b4fa763bcbc407) useTransactions update - [`ec6bc84`](https://github.com/actualbudget/actual/commit/ec6bc8443ace5fa14c1b97318e3ccbfcee70bfa2) Stabilize tests - [`9dc569f`](https://github.com/actualbudget/actual/commit/9dc569f0251720f716940ae6da859f49573fe568) Fx flaky test - [`ad4c9fa`](https://github.com/actualbudget/actual/commit/ad4c9fa544af37cf72174689225ac9f9b14e4bb8) Fix tests - [`48bb13e`](https://github.com/actualbudget/actual/commit/48bb13e562d1dbe96721e957ac78dd26ca037157) Fix tests - [`33d04c2`](https://github.com/actualbudget/actual/commit/33d04c24c8b4487f1ae5fccc31cc3b23466ca64f) Update queries - [`bc6cb82`](https://github.com/actualbudget/actual/commit/bc6cb828ef217dcc6b8118c8341e19cd519fe025) Apply coderabbit suggestions ### 📊 Changes **37 files changed** (+1249 additions, -769 deletions) <details> <summary>View changed files</summary> 📝 `.eslintrc.js` (+6 -1) 📝 `packages/desktop-client/e2e/accounts.mobile.test.js` (+7 -0) 📝 `packages/desktop-client/e2e/accounts.test.js` (+3 -0) 📝 `packages/desktop-client/e2e/page-models/account-page.js` (+4 -0) 📝 `packages/desktop-client/e2e/page-models/mobile-account-page.js` (+8 -0) 📝 `packages/desktop-client/e2e/page-models/mobile-accounts-page.js` (+5 -0) 📝 `packages/desktop-client/src/components/ManageRules.tsx` (+5 -2) 📝 `packages/desktop-client/src/components/accounts/Account.tsx` (+39 -45) 📝 `packages/desktop-client/src/components/accounts/Balance.jsx` (+7 -2) 📝 `packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx` (+120 -133) 📝 `packages/desktop-client/src/components/mobile/accounts/Accounts.jsx` (+1 -1) 📝 `packages/desktop-client/src/components/mobile/budget/CategoryTransactions.jsx` (+50 -84) 📝 `packages/desktop-client/src/components/mobile/transactions/TransactionList.jsx` (+0 -4) 📝 `packages/desktop-client/src/components/modals/EditRuleModal.jsx` (+14 -14) 📝 `packages/desktop-client/src/components/modals/ScheduledTransactionMenuModal.tsx` (+13 -11) 📝 `packages/desktop-client/src/components/rules/ScheduleValue.tsx` (+15 -3) 📝 `packages/desktop-client/src/components/schedules/ScheduleDetails.jsx` (+8 -2) 📝 `packages/desktop-client/src/components/schedules/ScheduleLink.tsx` (+12 -11) 📝 `packages/desktop-client/src/components/schedules/SchedulesTable.tsx` (+5 -2) 📝 `packages/desktop-client/src/components/schedules/index.tsx` (+53 -44) _...and 17 more files_ </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> Create a new `useTransactions` hook to simplify loading of transactions and preview transactions. The mobile transactions page have been migrated to use the new hook. Will try to use it on the desktop transaction list as well if I am able to find time because it first will need to be migrated to a functional component. Having both desktop and mobile use the same hook to load the transactions would make the behavior more consistent on both views and would be easier to maintain. --- <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 21:04:30 -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#5002