[PR #2293] [MERGED] Hooks for frequently made operations #4233

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2293
Author: @joel-jeremy
Created: 1/27/2024
Status: Merged
Merged: 2/12/2024
Merged by: @joel-jeremy

Base: masterHead: more-hooks


📝 Commits (10+)

📊 Changes

104 files changed (+1045 additions, -1492 deletions)

View changed files

📝 packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png (+0 -0)
📝 packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-2-chromium-linux.png (+0 -0)
📝 packages/desktop-client/src/components/App.tsx (+9 -38)
📝 packages/desktop-client/src/components/BankSyncStatus.tsx (+3 -4)
📝 packages/desktop-client/src/components/FinancesApp.tsx (+20 -21)
📝 packages/desktop-client/src/components/LoggedInUser.tsx (+2 -5)
📝 packages/desktop-client/src/components/ManageRules.tsx (+9 -14)
📝 packages/desktop-client/src/components/MobileWebMessage.tsx (+5 -15)
📝 packages/desktop-client/src/components/Modals.tsx (+6 -33)
📝 packages/desktop-client/src/components/Notifications.tsx (+4 -7)
📝 packages/desktop-client/src/components/PrivacyFilter.tsx (+1 -2)
📝 packages/desktop-client/src/components/ThemeSelector.tsx (+3 -8)
📝 packages/desktop-client/src/components/Titlebar.tsx (+11 -25)
📝 packages/desktop-client/src/components/UpdateNotification.tsx (+4 -8)
📝 packages/desktop-client/src/components/accounts/Account.jsx (+40 -17)
📝 packages/desktop-client/src/components/accounts/AccountSyncCheck.jsx (+2 -1)
📝 packages/desktop-client/src/components/accounts/Header.jsx (+3 -4)
📝 packages/desktop-client/src/components/accounts/MobileAccount.jsx (+20 -14)
📝 packages/desktop-client/src/components/accounts/MobileAccounts.jsx (+20 -17)
📝 packages/desktop-client/src/components/autocomplete/AccountAutocomplete.tsx (+2 -2)

...and 80 more files

📄 Description

Add hooks for frequently made operations in the codebase:

  • useAccounts
  • useAccount
  • useBudgetedAccounts
  • useOffBudgetAccounts
  • useClosedAccounts
  • useFailedAccounts
  • usePayees
  • usePayee
  • useLocalPrefs
  • useLocalPref
  • useGlobalPrefs
  • useGlobalPref
  • useDateFormat

🔄 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/2293 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 1/27/2024 **Status:** ✅ Merged **Merged:** 2/12/2024 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `more-hooks` --- ### 📝 Commits (10+) - [`fd24b27`](https://github.com/actualbudget/actual/commit/fd24b27c64cc42de5087cc49712115fe4653d374) Hooks for frequently made operations - [`42077a7`](https://github.com/actualbudget/actual/commit/42077a789448dd84d2cad7e4e09707f02c8a703b) Release notes - [`67c6631`](https://github.com/actualbudget/actual/commit/67c66311bef763b8277fb5f443c939cd1e3ac189) Fix typecheck errors - [`ca90ffb`](https://github.com/actualbudget/actual/commit/ca90ffbaf06e570fb6376a3c441590c8f76791ac) Remove useGlobalPrefs - [`054bbb0`](https://github.com/actualbudget/actual/commit/054bbb0f5d6baf64a2700012f85ae131a70ab596) Add null checks - [`da79abb`](https://github.com/actualbudget/actual/commit/da79abb65cd37bbbacfad68bf965053663f76334) Fix showCleared pref - [`87d3849`](https://github.com/actualbudget/actual/commit/87d3849fb385bb8079cb96ee14eb1999e077646f) Add loaded flag for categories, accounts and payees state - [`0d64693`](https://github.com/actualbudget/actual/commit/0d6469312d76adacdedce9570c064c94ea99f3ff) Refactor to reduce unnecessary states - [`34f62f6`](https://github.com/actualbudget/actual/commit/34f62f659856a9467084fd5f695426ca1c07de45) Fix eslint errors - [`5cc6019`](https://github.com/actualbudget/actual/commit/5cc60192722b4405ba2883969ca9f0bb8a7d7348) Fix hooks deps ### 📊 Changes **104 files changed** (+1045 additions, -1492 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-2-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/src/components/App.tsx` (+9 -38) 📝 `packages/desktop-client/src/components/BankSyncStatus.tsx` (+3 -4) 📝 `packages/desktop-client/src/components/FinancesApp.tsx` (+20 -21) 📝 `packages/desktop-client/src/components/LoggedInUser.tsx` (+2 -5) 📝 `packages/desktop-client/src/components/ManageRules.tsx` (+9 -14) 📝 `packages/desktop-client/src/components/MobileWebMessage.tsx` (+5 -15) 📝 `packages/desktop-client/src/components/Modals.tsx` (+6 -33) 📝 `packages/desktop-client/src/components/Notifications.tsx` (+4 -7) 📝 `packages/desktop-client/src/components/PrivacyFilter.tsx` (+1 -2) 📝 `packages/desktop-client/src/components/ThemeSelector.tsx` (+3 -8) 📝 `packages/desktop-client/src/components/Titlebar.tsx` (+11 -25) 📝 `packages/desktop-client/src/components/UpdateNotification.tsx` (+4 -8) 📝 `packages/desktop-client/src/components/accounts/Account.jsx` (+40 -17) 📝 `packages/desktop-client/src/components/accounts/AccountSyncCheck.jsx` (+2 -1) 📝 `packages/desktop-client/src/components/accounts/Header.jsx` (+3 -4) 📝 `packages/desktop-client/src/components/accounts/MobileAccount.jsx` (+20 -14) 📝 `packages/desktop-client/src/components/accounts/MobileAccounts.jsx` (+20 -17) 📝 `packages/desktop-client/src/components/autocomplete/AccountAutocomplete.tsx` (+2 -2) _...and 80 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 --> Add hooks for frequently made operations in the codebase: - `useAccounts` - `useAccount` - `useBudgetedAccounts` - `useOffBudgetAccounts` - `useClosedAccounts` - `useFailedAccounts` - `usePayees` - `usePayee` - `useLocalPrefs` - `useLocalPref` - `useGlobalPrefs` - `useGlobalPref` - `useDateFormat` --- <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:53:26 -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#4233