[PR #4016] [MERGED] [Redux Toolkit Migration] queriesSlice #5152

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4016
Author: @joel-jeremy
Created: 12/19/2024
Status: Merged
Merged: 1/17/2025
Merged by: @joel-jeremy

Base: masterHead: redux-toolkit-queries-slice


📝 Commits (10+)

📊 Changes

42 files changed (+1188 additions, -888 deletions)

View changed files

📝 packages/desktop-client/src/components/ManageRules.tsx (+1 -1)
📝 packages/desktop-client/src/components/accounts/Account.tsx (+17 -13)
📝 packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx (+6 -3)
📝 packages/desktop-client/src/components/budget/index.tsx (+31 -21)
📝 packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx (+9 -7)
📝 packages/desktop-client/src/components/mobile/budget/CategoryTransactions.tsx (+1 -1)
📝 packages/desktop-client/src/components/mobile/budget/index.tsx (+21 -14)
📝 packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx (+3 -2)
📝 packages/desktop-client/src/components/modals/CloseAccountModal.tsx (+13 -8)
📝 packages/desktop-client/src/components/modals/CreateLocalAccountModal.tsx (+8 -3)
📝 packages/desktop-client/src/components/modals/EditRuleModal.jsx (+4 -6)
📝 packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx (+20 -17)
📝 packages/desktop-client/src/components/payees/ManagePayeesWithData.tsx (+2 -2)
📝 packages/desktop-client/src/components/reports/Overview.tsx (+4 -1)
📝 packages/desktop-client/src/components/reports/ReportOptions.ts (+2 -1)
📝 packages/desktop-client/src/components/rules/ScheduleValue.tsx (+1 -1)
📝 packages/desktop-client/src/components/schedules/ScheduleDetails.tsx (+1 -1)
📝 packages/desktop-client/src/components/sidebar/Account.tsx (+8 -6)
📝 packages/desktop-client/src/components/transactions/TransactionsTable.jsx (+1 -1)
📝 packages/desktop-client/src/global-events.ts (+5 -3)

...and 22 more files

📄 Description

Reviewers - summary of changes on these Redux Toolkit Migration PRs:

  1. Deleted loot-core/client/actions/queries.ts and loot-core/client/reducers/queries.ts
    • These have been moved to desktop-client/queries/queriesSlice
  2. Change imports from loot-core/client/actions to desktop-client/queries/queriesSlice
  3. Addition of .unwrap() on dispatch(...) invocations which depend on the result of the dispatch e.g. const payees: PayeeEntity[] = await dispatch(getPayees()) --> const payees: PayeeEntity[] = await dispatch(getPayees()).unwrap()
  4. Actions payloads are now objects for consistency

🔄 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/4016 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 12/19/2024 **Status:** ✅ Merged **Merged:** 1/17/2025 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `redux-toolkit-queries-slice` --- ### 📝 Commits (10+) - [`a6f4576`](https://github.com/actualbudget/actual/commit/a6f45767c73eed2234560e6a0cf0d2ec57c1aa76) Migrate to accountSlice - [`943281d`](https://github.com/actualbudget/actual/commit/943281d56e64c22a109c5aebe4a50518c4866307) Fix lint and typecheck errors - [`813388d`](https://github.com/actualbudget/actual/commit/813388d3f65bb681ffb6a2b0926fce71cb394d77) Update types - [`4222add`](https://github.com/actualbudget/actual/commit/4222add90ab82d7d6e48b648657f8783f331ad9a) Fix lint - [`7c11cd4`](https://github.com/actualbudget/actual/commit/7c11cd4c8eeb5acf08ed3a9d5f3634847a3120fb) Fix types - [`1be216f`](https://github.com/actualbudget/actual/commit/1be216f78aa42faf74afe3745c5abd2686dccad7) Cleanup - [`4822331`](https://github.com/actualbudget/actual/commit/4822331847bdcd8a4ace67eef792d075809f2a11) Rename file - [`ea3160c`](https://github.com/actualbudget/actual/commit/ea3160cdb6f325eb6ccf21bc341156770db2ff5d) Rename state - [`512480b`](https://github.com/actualbudget/actual/commit/512480bd61fff03ec81c23b83b0999780f40d46b) Cleanup - [`7dd17a5`](https://github.com/actualbudget/actual/commit/7dd17a511e42d991bdd557aedbd2b488a60d17e5) Fix typecheck error ### 📊 Changes **42 files changed** (+1188 additions, -888 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/ManageRules.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/accounts/Account.tsx` (+17 -13) 📝 `packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx` (+6 -3) 📝 `packages/desktop-client/src/components/budget/index.tsx` (+31 -21) 📝 `packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx` (+9 -7) 📝 `packages/desktop-client/src/components/mobile/budget/CategoryTransactions.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/mobile/budget/index.tsx` (+21 -14) 📝 `packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx` (+3 -2) 📝 `packages/desktop-client/src/components/modals/CloseAccountModal.tsx` (+13 -8) 📝 `packages/desktop-client/src/components/modals/CreateLocalAccountModal.tsx` (+8 -3) 📝 `packages/desktop-client/src/components/modals/EditRuleModal.jsx` (+4 -6) 📝 `packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx` (+20 -17) 📝 `packages/desktop-client/src/components/payees/ManagePayeesWithData.tsx` (+2 -2) 📝 `packages/desktop-client/src/components/reports/Overview.tsx` (+4 -1) 📝 `packages/desktop-client/src/components/reports/ReportOptions.ts` (+2 -1) 📝 `packages/desktop-client/src/components/rules/ScheduleValue.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/schedules/ScheduleDetails.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/sidebar/Account.tsx` (+8 -6) 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.jsx` (+1 -1) 📝 `packages/desktop-client/src/global-events.ts` (+5 -3) _...and 22 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 --> <!-- 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 --> - [x] `actions/account.ts` / `reducers/account.ts` -> `accounts/accountsSlice.ts` #4012 - [x] `actions/queries.ts` / `reducers/queries.ts` -> `queries/queriesSlice.ts` #4016 - [ ] `actions/app.ts` / `reducers/app.ts` -> `app/appSlice.ts` - [ ] `actions/budgets.ts` / `reducers/budgets.ts` -> `budgets/budgetsSlice.ts` - [ ] `actions/modals.ts` / `reducers/modals.ts` -> `modals/modalsSlice.ts` - [ ] `actions/notifications.ts` / `reducers/notifications.ts` -> `notifications/notificationsSlice.ts` - [ ] `actions/prefs.ts` / `reducers/prefs.ts` -> `prefs/prefsSlice.ts` - [ ] `actions/user.ts` / `reducers/user.ts` -> `users/usersSlice.ts` Reviewers - summary of changes on these Redux Toolkit Migration PRs: 1. Deleted `loot-core/client/actions/queries.ts` and `loot-core/client/reducers/queries.ts` - These have been moved to `desktop-client/queries/queriesSlice` 3. Change imports from `loot-core/client/actions` to `desktop-client/queries/queriesSlice` 4. Addition of `.unwrap()` on `dispatch(...)` invocations which depend on the result of the dispatch e.g. `const payees: PayeeEntity[] = await dispatch(getPayees())` --> `const payees: PayeeEntity[] = await dispatch(getPayees()).unwrap()` 5. Actions payloads are now objects for consistency --- <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:06:52 -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#5152