[PR #6926] [MERGED] Duplicate reimport fix in ui and API #41253

Closed
opened 2026-04-23 14:03:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6926
Author: @totallynotjon
Created: 2/10/2026
Status: Merged
Merged: 3/17/2026
Merged by: @MatissJanis

Base: masterHead: duplicate_reimport


📝 Commits (10+)

📊 Changes

10 files changed (+222 additions, -9 deletions)

View changed files

📝 packages/api/methods.test.ts (+67 -0)
📝 packages/desktop-client/src/accounts/mutations.ts (+6 -0)
📝 packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.tsx (+23 -0)
📝 packages/docs/docs/api/reference.md (+16 -1)
📝 packages/docs/docs/transactions/importing.md (+6 -0)
📝 packages/loot-core/src/server/accounts/app.ts (+4 -3)
📝 packages/loot-core/src/server/accounts/sync.test.ts (+82 -0)
📝 packages/loot-core/src/server/accounts/sync.ts (+11 -5)
📝 packages/loot-core/src/types/api-handlers.ts (+1 -0)
upcoming-release-notes/6926.md (+6 -0)

📄 Description

Addresses #6678

Added override option to the importTransactions API and direct file import UI, allowing users to control whether previously deleted (or merged) transactions are reimported. Added to the docs for the API; including the previously undocumented opts parameter (defaultCleared, dryRun, reimportDeleted).


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 26 11.83 MB → 11.83 MB (+748 B) +0.01%
loot-core 1 4.83 MB → 4.83 MB (+152 B) +0.00%
api 4 4.05 MB → 4.05 MB (+152 B) +0.00%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
26 11.83 MB → 11.83 MB (+748 B) +0.01%
Changeset
File Δ Size
src/components/modals/ImportTransactionsModal/ImportTransactionsModal.tsx 📈 +748 B (+2.43%) 30.04 kB → 30.77 kB
src/accounts/mutations.ts 📈 +172 B (+1.35%) 12.43 kB → 12.6 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 3.22 MB → 3.22 MB (+748 B) +0.02%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/BackgroundImage.js 119.98 kB 0%
static/js/FormulaEditor.js 720.12 kB 0%
static/js/ReportRouter.js 1012.02 kB 0%
static/js/TransactionList.js 81.29 kB 0%
static/js/ca.js 185.62 kB 0%
static/js/da.js 104.66 kB 0%
static/js/de.js 177.63 kB 0%
static/js/en-GB.js 7.16 kB 0%
static/js/en.js 169.27 kB 0%
static/js/es.js 172.13 kB 0%
static/js/fr.js 177.63 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 168.97 kB 0%
static/js/narrow.js 353.47 kB 0%
static/js/nb-NO.js 154.72 kB 0%
static/js/nl.js 111.58 kB 0%
static/js/pl.js 88.31 kB 0%
static/js/pt-BR.js 180.55 kB 0%
static/js/resize-observer.js 18.03 kB 0%
static/js/th.js 179.94 kB 0%
static/js/theme.js 30.68 kB 0%
static/js/uk.js 213.14 kB 0%
static/js/useTransactionBatchActions.js 4.27 MB 0%
static/js/wide.js 418 B 0%
static/js/workbox-window.prod.es5.js 7.28 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 4.83 MB → 4.83 MB (+152 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts 📈 +122 B (+0.54%) 22 kB → 22.12 kB
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts 📈 +30 B (+0.14%) 21.57 kB → 21.6 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.5n1gnplM.js 0 B → 4.83 MB (+4.83 MB) -

Removed

Asset File Size % Changed
kcab.worker.D45i7710.js 4.83 MB → 0 B (-4.83 MB) -100%

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged
No assets were unchanged


api

Total

Files count Total bundle size % Changed
4 4.05 MB → 4.05 MB (+152 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts 📈 +122 B (+0.55%) 21.63 kB → 21.75 kB
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts 📈 +30 B (+0.14%) 21.28 kB → 21.31 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
index.js 3.84 MB → 3.84 MB (+152 B) +0.00%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
from-Bl-Hslp4.js 167.73 kB 0%
multipart-parser-BnDysoMr.js 8.1 kB 0%
src-iMkUmuwR.js 43.64 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/6926 **Author:** [@totallynotjon](https://github.com/totallynotjon) **Created:** 2/10/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `duplicate_reimport` --- ### 📝 Commits (10+) - [`062c3ba`](https://github.com/actualbudget/actual/commit/062c3bac86f3fd6fb51f8b8796da406bf7d7bbcc) add options to override reimportDeleted - [`deced0d`](https://github.com/actualbudget/actual/commit/deced0d9d6ba19aa59fe12790c3f74af7a4a2703) doc and default in ui to false - [`c72c5ce`](https://github.com/actualbudget/actual/commit/c72c5ce5c5848a3a67ea1f253f9ffe109bf8aa26) pr note - [`224ac28`](https://github.com/actualbudget/actual/commit/224ac284e3e599e3ed6909d16c0b717adf08c2b0) period - [`98edb01`](https://github.com/actualbudget/actual/commit/98edb01cb696a3a1ba2e82f7b4771ea92f99ca66) wording - [`1a04d40`](https://github.com/actualbudget/actual/commit/1a04d402bbc5c1b05d188467a0b46b1d171c6251) [autofix.ci] apply automated fixes - [`e20b2c5`](https://github.com/actualbudget/actual/commit/e20b2c58923d14db43e8af5ee9d14481dd71e28b) docs clarity - [`28325c5`](https://github.com/actualbudget/actual/commit/28325c5b93a268d5643a83b0b2885d58f38ad35b) actually test default behavior - [`1b047b2`](https://github.com/actualbudget/actual/commit/1b047b2e5eead05775f00bff11f34888a942e217) Merge branch 'master' into duplicate_reimport - [`04ceb69`](https://github.com/actualbudget/actual/commit/04ceb6979b3e71e2893406d87765a6dce1cb3a8a) Update upcoming-release-notes/6926.md ### 📊 Changes **10 files changed** (+222 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/methods.test.ts` (+67 -0) 📝 `packages/desktop-client/src/accounts/mutations.ts` (+6 -0) 📝 `packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.tsx` (+23 -0) 📝 `packages/docs/docs/api/reference.md` (+16 -1) 📝 `packages/docs/docs/transactions/importing.md` (+6 -0) 📝 `packages/loot-core/src/server/accounts/app.ts` (+4 -3) 📝 `packages/loot-core/src/server/accounts/sync.test.ts` (+82 -0) 📝 `packages/loot-core/src/server/accounts/sync.ts` (+11 -5) 📝 `packages/loot-core/src/types/api-handlers.ts` (+1 -0) ➕ `upcoming-release-notes/6926.md` (+6 -0) </details> ### 📄 Description Addresses #6678 Added override option to the importTransactions API and direct file import UI, allowing users to control whether previously deleted (or merged) transactions are reimported. Added to the docs for the API; including the previously undocumented opts parameter (defaultCleared, dryRun, reimportDeleted). <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 26 | 11.83 MB → 11.83 MB (+748 B) | +0.01% loot-core | 1 | 4.83 MB → 4.83 MB (+152 B) | +0.00% api | 4 | 4.05 MB → 4.05 MB (+152 B) | +0.00% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 26 | 11.83 MB → 11.83 MB (+748 B) | +0.01% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/modals/ImportTransactionsModal/ImportTransactionsModal.tsx` | 📈 +748 B (+2.43%) | 30.04 kB → 30.77 kB `src/accounts/mutations.ts` | 📈 +172 B (+1.35%) | 12.43 kB → 12.6 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 3.22 MB → 3.22 MB (+748 B) | +0.02% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/BackgroundImage.js | 119.98 kB | 0% static/js/FormulaEditor.js | 720.12 kB | 0% static/js/ReportRouter.js | 1012.02 kB | 0% static/js/TransactionList.js | 81.29 kB | 0% static/js/ca.js | 185.62 kB | 0% static/js/da.js | 104.66 kB | 0% static/js/de.js | 177.63 kB | 0% static/js/en-GB.js | 7.16 kB | 0% static/js/en.js | 169.27 kB | 0% static/js/es.js | 172.13 kB | 0% static/js/fr.js | 177.63 kB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 13.46 kB | 0% static/js/it.js | 168.97 kB | 0% static/js/narrow.js | 353.47 kB | 0% static/js/nb-NO.js | 154.72 kB | 0% static/js/nl.js | 111.58 kB | 0% static/js/pl.js | 88.31 kB | 0% static/js/pt-BR.js | 180.55 kB | 0% static/js/resize-observer.js | 18.03 kB | 0% static/js/th.js | 179.94 kB | 0% static/js/theme.js | 30.68 kB | 0% static/js/uk.js | 213.14 kB | 0% static/js/useTransactionBatchActions.js | 4.27 MB | 0% static/js/wide.js | 418 B | 0% static/js/workbox-window.prod.es5.js | 7.28 kB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.83 MB → 4.83 MB (+152 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts` | 📈 +122 B (+0.54%) | 22 kB → 22.12 kB `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts` | 📈 +30 B (+0.14%) | 21.57 kB → 21.6 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.5n1gnplM.js | 0 B → 4.83 MB (+4.83 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.D45i7710.js | 4.83 MB → 0 B (-4.83 MB) | -100% **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 4 | 4.05 MB → 4.05 MB (+152 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts` | 📈 +122 B (+0.55%) | 21.63 kB → 21.75 kB `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts` | 📈 +30 B (+0.14%) | 21.28 kB → 21.31 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- index.js | 3.84 MB → 3.84 MB (+152 B) | +0.00% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- from-Bl-Hslp4.js | 167.73 kB | 0% multipart-parser-BnDysoMr.js | 8.1 kB | 0% src-iMkUmuwR.js | 43.64 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-23 14:03:42 -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#41253