[PR #7182] [CLOSED] [AI] Move desktop-client to subpath imports #21353

Closed
opened 2026-04-14 22:02:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7182
Author: @MatissJanis
Created: 3/12/2026
Status: Closed

Base: masterHead: matiss/desktop-client-subpath-imports


📝 Commits (2)

  • b4c8197 [AI] Move desktop-client to subpath imports
  • cb618be Add a Vite plugin to resolve local subpath imports in desktop-client configuration

📊 Changes

473 files changed (+2265 additions, -2710 deletions)

View changed files

📝 .oxfmtrc.json (+1 -1)
📝 packages/desktop-client/package.json (+8 -0)
📝 packages/desktop-client/src/accounts/accountsSlice.ts (+1 -1)
📝 packages/desktop-client/src/accounts/mutations.ts (+7 -7)
📝 packages/desktop-client/src/app/appSlice.ts (+4 -4)
📝 packages/desktop-client/src/auth/AuthProvider.tsx (+2 -2)
📝 packages/desktop-client/src/auth/ProtectedRoute.tsx (+2 -2)
📝 packages/desktop-client/src/budget/mutations.ts (+4 -4)
📝 packages/desktop-client/src/budgetfiles/budgetfilesSlice.ts (+5 -5)
📝 packages/desktop-client/src/components/App.tsx (+15 -18)
📝 packages/desktop-client/src/components/AppBackground.tsx (+1 -1)
📝 packages/desktop-client/src/components/BankSyncStatus.tsx (+1 -1)
📝 packages/desktop-client/src/components/CommandBar.tsx (+8 -12)
📝 packages/desktop-client/src/components/FatalError.tsx (+1 -1)
📝 packages/desktop-client/src/components/FinancesApp.tsx (+12 -12)
📝 packages/desktop-client/src/components/GlobalKeys.ts (+1 -1)
📝 packages/desktop-client/src/components/HelpMenu.tsx (+3 -3)
📝 packages/desktop-client/src/components/LoggedInUser.tsx (+7 -7)
📝 packages/desktop-client/src/components/ManageRules.tsx (+7 -10)
📝 packages/desktop-client/src/components/Modals.tsx (+5 -5)

...and 80 more files

📄 Description

Description

Converting @desktop-client/* imports that used tsconfig.json path (bad!) to subpath imports. But I am keeping around the @desktop-client/* path for now.. so people have somewhat less conflicts. But I will finish off the cleanup after a month.

https://github.com/actualbudget/actual/issues/7017

Testing

N/A

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 27 14.92 MB 0%
loot-core 1 5.83 MB 0%
api 3 4.82 MB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
27 14.92 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/index.js 9.57 MB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/ca.js 187.85 kB 0%
static/js/da.js 106.13 kB 0%
static/js/de.js 179.82 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 171.21 kB 0%
static/js/es.js 174.29 kB 0%
static/js/fr.js 179.34 kB 0%
static/js/it.js 170.91 kB 0%
static/js/nb-NO.js 156.74 kB 0%
static/js/nl.js 113.03 kB 0%
static/js/pl.js 89.61 kB 0%
static/js/pt-BR.js 182.82 kB 0%
static/js/th.js 181.54 kB 0%
static/js/uk.js 215.25 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/ReportRouter.js 1.16 MB 0%
static/js/narrow.js 638.11 kB 0%
static/js/TransactionList.js 106.48 kB 0%
static/js/wide.js 164.15 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 11.57 kB 0%
static/js/useTransactionBatchActions.js 13.23 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.83 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.BXPdB7lm.js 5.83 MB 0%

api

Total

Files count Total bundle size % Changed
3 4.82 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 4.53 MB 0%
index-BKGP2w5F.js 285.56 kB 0%
multipart-parser-DwddZ4BH.js 9.33 kB 0%

🔄 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/7182 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 3/12/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `matiss/desktop-client-subpath-imports` --- ### 📝 Commits (2) - [`b4c8197`](https://github.com/actualbudget/actual/commit/b4c81974ab3c417c281b5f6e422261331216e618) [AI] Move desktop-client to subpath imports - [`cb618be`](https://github.com/actualbudget/actual/commit/cb618beadfde3fca67e2c0137006ad549b37a27a) Add a Vite plugin to resolve local subpath imports in desktop-client configuration ### 📊 Changes **473 files changed** (+2265 additions, -2710 deletions) <details> <summary>View changed files</summary> 📝 `.oxfmtrc.json` (+1 -1) 📝 `packages/desktop-client/package.json` (+8 -0) 📝 `packages/desktop-client/src/accounts/accountsSlice.ts` (+1 -1) 📝 `packages/desktop-client/src/accounts/mutations.ts` (+7 -7) 📝 `packages/desktop-client/src/app/appSlice.ts` (+4 -4) 📝 `packages/desktop-client/src/auth/AuthProvider.tsx` (+2 -2) 📝 `packages/desktop-client/src/auth/ProtectedRoute.tsx` (+2 -2) 📝 `packages/desktop-client/src/budget/mutations.ts` (+4 -4) 📝 `packages/desktop-client/src/budgetfiles/budgetfilesSlice.ts` (+5 -5) 📝 `packages/desktop-client/src/components/App.tsx` (+15 -18) 📝 `packages/desktop-client/src/components/AppBackground.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/BankSyncStatus.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/CommandBar.tsx` (+8 -12) 📝 `packages/desktop-client/src/components/FatalError.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/FinancesApp.tsx` (+12 -12) 📝 `packages/desktop-client/src/components/GlobalKeys.ts` (+1 -1) 📝 `packages/desktop-client/src/components/HelpMenu.tsx` (+3 -3) 📝 `packages/desktop-client/src/components/LoggedInUser.tsx` (+7 -7) 📝 `packages/desktop-client/src/components/ManageRules.tsx` (+7 -10) 📝 `packages/desktop-client/src/components/Modals.tsx` (+5 -5) _...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. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## Description <!-- What does this PR do? Why is it needed? Please give context on the "why?": why do we need this change? What problem is it solving for you?--> Converting `@desktop-client/*` imports that used `tsconfig.json` `path` (bad!) to subpath imports. But I am keeping around the `@desktop-client/*` path for now.. so people have somewhat less conflicts. But I will finish off the cleanup after a month. ## Related issue(s) <!-- e.g. Fixes #123, Relates to #456 --> https://github.com/actualbudget/actual/issues/7017 ## Testing <!-- What did you test? How can we reproduce the issue you are fixing or how can we test the feature you built? --> N/A ## Checklist - [x] Release notes added (see link above) - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed <!--- actual-bot-sections ---> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 27 | 14.92 MB | 0% loot-core | 1 | 5.83 MB | 0% api | 3 | 4.82 MB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 27 | 14.92 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 9.57 MB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/ca.js | 187.85 kB | 0% static/js/da.js | 106.13 kB | 0% static/js/de.js | 179.82 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 171.21 kB | 0% static/js/es.js | 174.29 kB | 0% static/js/fr.js | 179.34 kB | 0% static/js/it.js | 170.91 kB | 0% static/js/nb-NO.js | 156.74 kB | 0% static/js/nl.js | 113.03 kB | 0% static/js/pl.js | 89.61 kB | 0% static/js/pt-BR.js | 182.82 kB | 0% static/js/th.js | 181.54 kB | 0% static/js/uk.js | 215.25 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/ReportRouter.js | 1.16 MB | 0% static/js/narrow.js | 638.11 kB | 0% static/js/TransactionList.js | 106.48 kB | 0% static/js/wide.js | 164.15 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 11.57 kB | 0% static/js/useTransactionBatchActions.js | 13.23 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.83 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.BXPdB7lm.js | 5.83 MB | 0% </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 3 | 4.82 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- index.js | 4.53 MB | 0% index-BKGP2w5F.js | 285.56 kB | 0% multipart-parser-DwddZ4BH.js | 9.33 kB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <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-14 22:02:17 -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#21353