[PR #4827] [MERGED] Move loot-core/client/store and loot-core/client/redux code over to desktop-client package #5605

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4827
Author: @joel-jeremy
Created: 4/16/2025
Status: Merged
Merged: 5/15/2025
Merged by: @joel-jeremy

Base: masterHead: loot-core-client-store-to-desktop-client


📝 Commits (5)

  • bb14e70 Move loot-core/client/modals code over to desktop-client package
  • 3144a82 Fix lint error
  • 800c84a Move loot-core/client/store and loot-core/client/redux to desktop-client package
  • 4c9808d Separate redux store into it's own file
  • 6fbf0b4 Import types from redux/store instead of redux

📊 Changes

20 files changed (+100 additions, -115 deletions)

View changed files

📝 packages/desktop-client/src/accounts/accountsSlice.ts (+2 -2)
📝 packages/desktop-client/src/app/appSlice.ts (+1 -1)
📝 packages/desktop-client/src/budgets/budgetsSlice.ts (+1 -1)
📝 packages/desktop-client/src/components/accounts/Account.tsx (+1 -1)
📝 packages/desktop-client/src/global-events.ts (+1 -1)
📝 packages/desktop-client/src/gocardless.ts (+1 -1)
📝 packages/desktop-client/src/index.tsx (+1 -1)
📝 packages/desktop-client/src/modals/modalsSlice.ts (+1 -1)
📝 packages/desktop-client/src/prefs/prefsSlice.ts (+1 -1)
📝 packages/desktop-client/src/queries/queriesSlice.ts (+1 -1)
📝 packages/desktop-client/src/redux/index.ts (+8 -5)
📝 packages/desktop-client/src/redux/mock.tsx (+57 -1)
📝 packages/desktop-client/src/redux/store.ts (+15 -17)
📝 packages/desktop-client/src/setupTests.js (+1 -2)
📝 packages/desktop-client/src/users/usersSlice.ts (+1 -1)
packages/loot-core/src/client/redux.ts (+0 -8)
packages/loot-core/src/client/redux/index.ts (+0 -8)
📝 packages/loot-core/src/client/shared-listeners.ts (+1 -2)
packages/loot-core/src/client/store/mock.ts (+0 -60)
upcoming-release-notes/4827.md (+6 -0)

📄 Description

The original reason this was designed this way it to share the code with a mobile app. But since we no longer have a mobile app, these codes can now be merged to desktop-client package.

  • accounts folder
  • app folder
  • budgets folder
  • modals folder
  • notifications folder
  • prefs folder
  • queries folder
  • users folder
  • data-hooks folder
  • store folder
  • files under root loot-core/client folder

There will be some suppressed import warning due to loot-core importing some desktop-client files but this is only temporary until we migrate all the files.

This resolves most of the the suppressed errors introduced in previous PRs in this series.

Changes done:

  1. Copied loot-core/client/redux/index.ts code to desktop-client/src/redux/index.ts
  2. Copied loot-core/client/redux/store.ts code to desktop-client/src/redux/store.ts
  3. Copied loot-core/client/redux/mock.ts code to desktop-client/src/redux/mock.ts
  4. Run yarn lint:fix
  5. Suppress some @actual-app/web imports in loot-core (temporary until all loot-core/client is moved over to desktop-client)

🔄 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/4827 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 4/16/2025 **Status:** ✅ Merged **Merged:** 5/15/2025 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `loot-core-client-store-to-desktop-client` --- ### 📝 Commits (5) - [`bb14e70`](https://github.com/actualbudget/actual/commit/bb14e703d65efbeef308d5d937e9d475a4bf22b8) Move loot-core/client/modals code over to desktop-client package - [`3144a82`](https://github.com/actualbudget/actual/commit/3144a82a72bc10bd719d99393ea7c9dad9335b60) Fix lint error - [`800c84a`](https://github.com/actualbudget/actual/commit/800c84a726ad366b3afdb06b1642b9158ed3c107) Move loot-core/client/store and loot-core/client/redux to desktop-client package - [`4c9808d`](https://github.com/actualbudget/actual/commit/4c9808d0223d1883167fb1e012ec9b2e47c39679) Separate redux store into it's own file - [`6fbf0b4`](https://github.com/actualbudget/actual/commit/6fbf0b4b8e8ebb37f773eadc1b2bd18fffefbe75) Import types from redux/store instead of redux ### 📊 Changes **20 files changed** (+100 additions, -115 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/accounts/accountsSlice.ts` (+2 -2) 📝 `packages/desktop-client/src/app/appSlice.ts` (+1 -1) 📝 `packages/desktop-client/src/budgets/budgetsSlice.ts` (+1 -1) 📝 `packages/desktop-client/src/components/accounts/Account.tsx` (+1 -1) 📝 `packages/desktop-client/src/global-events.ts` (+1 -1) 📝 `packages/desktop-client/src/gocardless.ts` (+1 -1) 📝 `packages/desktop-client/src/index.tsx` (+1 -1) 📝 `packages/desktop-client/src/modals/modalsSlice.ts` (+1 -1) 📝 `packages/desktop-client/src/prefs/prefsSlice.ts` (+1 -1) 📝 `packages/desktop-client/src/queries/queriesSlice.ts` (+1 -1) 📝 `packages/desktop-client/src/redux/index.ts` (+8 -5) 📝 `packages/desktop-client/src/redux/mock.tsx` (+57 -1) 📝 `packages/desktop-client/src/redux/store.ts` (+15 -17) 📝 `packages/desktop-client/src/setupTests.js` (+1 -2) 📝 `packages/desktop-client/src/users/usersSlice.ts` (+1 -1) ➖ `packages/loot-core/src/client/redux.ts` (+0 -8) ➖ `packages/loot-core/src/client/redux/index.ts` (+0 -8) 📝 `packages/loot-core/src/client/shared-listeners.ts` (+1 -2) ➖ `packages/loot-core/src/client/store/mock.ts` (+0 -60) ➕ `upcoming-release-notes/4827.md` (+6 -0) </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. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> The original reason this was designed this way it to share the code with a mobile app. But since we no longer have a mobile app, these codes can now be merged to `desktop-client` package. - [x] accounts folder - [x] app folder - [x] budgets folder - [x] modals folder - [x] notifications folder - [x] prefs folder - [x] queries folder - [x] users folder - [ ] data-hooks folder - [x] store folder - [ ] files under root `loot-core/client` folder There will be some suppressed import warning due to loot-core importing some desktop-client files but this is only temporary until we migrate all the files. This resolves most of the the suppressed errors introduced in previous PRs in this series. # Changes done: 1. Copied `loot-core/client/redux/index.ts` code to `desktop-client/src/redux/index.ts` 1. Copied `loot-core/client/redux/store.ts` code to `desktop-client/src/redux/store.ts` 2. Copied `loot-core/client/redux/mock.ts` code to `desktop-client/src/redux/mock.ts` 3. Run yarn lint:fix 4. Suppress some @actual-app/web imports in loot-core (temporary until all loot-core/client is moved over to desktop-client) --- <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:15:14 -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#5605