Skip to content

[AI] Merge upstream actualbudget/actual master - #52

Merged
chrisvasz merged 38 commits into
masterfrom
claude/fork-upstream-merge-review-597f98
Sep 28, 2026
Merged

chrisvasz merged 38 commits into
masterfrom
claude/fork-upstream-merge-review-597f98

Conversation

@chrisvasz

Copy link
Copy Markdown
Owner

Merges the 35 upstream commits since the fork diverged at actualbudget/actual#8898. Fork changes are kept where the two sides overlap.

  • Monte Carlo run tables: takes upstream's rewrite and removes the PrivacyFilter wrappers it adds, including in the new MonteCarloContributions.tsx, since privacy mode is removed in this fork.
  • Classic sidebar account row: keeps the fork's popover-free version and switches to upstream's new isTouchDevice() helper.
  • Redesigned sidebar: upstream moved the account hover card (full name, balance history toggle, notes) into the experimental sidebar. This PR removes it there as well, along with its synced pref, to match the classic sidebar removal. The release note now covers both.
  • CSV import VRT snapshots: regenerated in the Playwright Docker image. They now show upstream's Encoding selector without the privacy button.

Note: upstream moved better-sqlite3 to v13. Its prebuilt binary needs Node ≥22.14, so local Node versions below that will crash the core tests and the sync server. .nvmrc pins 24.18.1.

Checks run locally on Node 24.18.1: typecheck, lint and yarn test all pass, and the import VRTs pass in Docker.

🤖 Generated with Claude Code

sreetamdas and others added 30 commits September 13, 2026 21:24
* [AI] Add Karma to the custom theme catalog

Karma is a dark theme for Actual Budget. The CSS is hosted at
sreetamdas/karma/actual.css and every --color-* token is mapped from the
canonical Karma palette, so the theme stays in step with the Karma ports for
VS Code, Zed and iTerm.

Colors are the six representative hues for the catalog swatch: the near-black
background, the purple primary accent, and the green/pink/orange/cyan accents.

* [AI] Add release note for the Karma theme
…e (#8798)

* [AI] Fix missing vite-plugin-peggy workspace in sync-server.Dockerfile

The deps stage copies each workspace's package.json individually for Docker layer caching, but packages/vite-plugin-peggy/package.json was never added to that list even though loot-core and api both depend on it via workspace:*, so yarn install fails resolution with Workspace not found. Add the missing COPY line.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* release note

---------

Co-authored-by: Amy Hawkins <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
* Clarify enable-banking.md steps

It seems to be a common problem people face that they skip the `Link the accounts you want in the Enable Banking interface`

actualbudget/actual#7799 (comment)
actualbudget/actual#7799 (comment)
actualbudget/actual#7799 (comment)
actualbudget/actual#7799 (comment)
actualbudget/actual#7799 (comment)
actualbudget/actual#7799 (comment)
actualbudget/actual#7799 (comment)

* [autofix.ci] apply automated fixes

* coderabbitai requested improvements

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Update tips-tricks.md

Correct out of date documentation.

* Add release notes

* Clearer writing, filename fix for release notes
* when data folder is unavailable due to permissions etc, show a friendly prompt

* feedback from rabbit
…rflow (#8706)

* [AI] fix(sync): receive only the latest timestamp to stop counter overflow

Timestamp.recv was called once per incoming message. Each call burns one
tick of the 16-bit HLC counter whenever the logical clock does not advance,
and the counter only resets when Date.now() moves forward. Browsers that
coarsen Date.now() (LibreWolf, or Firefox with resistFingerprinting, which
rounds it to 100ms) give the loop enough time to pass 65535 messages in a
single tick, so a large sync throws OverflowError and the budget never
opens.

Receive only the highest incoming timestamp instead. The clock lands in the
same place, the drift check still sees the furthest-ahead message, and the
counter advances once per batch.

* [AI] fix(sync): address timestamp review feedback

Change-Id: oowtnqoxrmltvupuxowqqnnynnqwkxqx
* [AI] Rank exact payee matches above tied substring matches

fzf's tiebreakers default to none, so when two suggestions tie on match
score (e.g. querying 'Amazon' against both 'Amazon' and 'Amazon Prime'),
the ranking falls back to original array order instead of favoring the
exact match. useTags.ts already fixes this for tag filtering via
tiebreakers: [byLengthAsc, byStartAsc]; this applies the same fix to
payee autocomplete matching.

Split out from the combined payee/category fix on
fix/exact-match-tiebreak-scoring — the category half is intentionally
not carried over, since category suggestions are meant to stay ordered
the way they appear within the budget arrangement.

* [AI] Use alphabetically-ordered payee names in exact-match tiebreak test

'Amazon Prime'/'Amazon' needed to be listed out of alpha order to
demonstrate the bug, which doesn't match how the payee list is
naturally sorted. 'AAA Google'/'Google' demonstrates the same fix
while staying in alpha order like the rest of the suite.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
* increasing cache size, wrap updatetransactions in one transaction to reduce number

* rabbit feedback
* [AI] Show a progress bar while importing a YNAB budget

* [AI] Name the account in transaction import progress

* [AI] Defer scheduled import progress until rule updates finish

Change-Id: rnuttktwqnkslztsvklpqxvnwnvqvopy

* [AI] Prevent dismissing an import while it is running

Change-Id: tnwzlovsmtsqwtkxorqnymtxvwuyrsvk

* [AI] Subscribe to import progress before importing

Change-Id: kwnmmmslpoxpxrmpzltnwsrqvuryzous
* monte carlo income streams

* simplify release note

* enhancement

* fix withdrawal rule floor when income is specified

* update screenshots

* suplus pot and images

* way better description in the run details

* covering case where income is all thats setup and spending is the same as the income

* feedback

* screenshots and rename of minimum withdrawal to min spending

* additional docs
* optimise transactions edits/deletes by making the running balance query find applicable rules first, and only run if required

* balance now fetched at most once and only for a rule whos conditions matched
* fix underfunded gap amount when using withdrawal rules and min spending amount

* release notes
* filter helper

* add search

* note

* review improvements
* add account hover card

* add context menus

* note

* generalise touch helper

* coderabbit
* warn when monte carlo contribution is too large

* feedback
* better-sqlite3 v13

* note

* fix build

* engine update

* fix yarn warning and arm32 docker builds
* [AI] Retry Weblate repository lock conflicts

* [AI] Add release note for translation retries
The month rewrite in parseDate matched "Sep", "Sep." and "September"
but not the four-letter "Sept" that some bank exports use. The word
boundary after "sep" failed on the trailing "t", so the month was never
converted to a number and every September row was rejected as an
invalid date.

Extend the regex to also accept "Sept" and "Sept." and cover the
DD MMM YY, DD MMM YYYY and MMM DD, YYYY forms in the parseDate table.

Closes #8888
* improve performance of monte carlo

* release notes
…973)

* fix YNAB4 import dropping the parent payee on split children

YNAB4 stores the payee on the parent transaction only, but the importer
spread a `payee: undefined` key onto every non-transfer sub transaction.
`makeChild` treats a present key as explicit, so the children never fell
back to the parent's payee and showed up with no payee at all. Only emit
the key when a payee was actually resolved; transfer children are unchanged.

Fixes #3561

* Update packages/loot-core/src/server/importers/ynab4.ts

---------

Co-authored-by: Tim <[email protected]>
… (#8924)

* [AI] Detect CSV file encoding and add a per-account encoding selector

Read CSV/TSV files as raw bytes and decode them based on the detected
encoding instead of always assuming UTF-8: the byte order mark, BOM-less
UTF-16 (NUL byte analysis), strict UTF-8 validation, and a windows-1252
fallback that also decodes ISO-8859-1 content. A mostly-valid UTF-8 file
with a few corrupted bytes still decodes as UTF-8 with replacement
characters instead of falling back to windows-1252.

Add an encoding selector to the CSV import options, persisted per
account like the delimiter, for files in encodings that cannot be
detected automatically (e.g. windows-1250, ISO-8859-2).

Adds fixtures and tests for UTF-16 (with and without BOM), UTF-8 with
BOM, corrupted UTF-8, NUL-padded UTF-8, and windows-1252 content.

Fixes #6327

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #8924

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #8924

* [AI] Address review: require dominant NUL parity and translate encoding labels

Require one parity to clearly dominate (>= 90% of NUL bytes) before
detecting BOM-less UTF-16, so a UTF-8 file with dense contiguous NUL
padding (even split across parities) is no longer misdetected as
UTF-16. Adds a fixture with padding above the 10% density threshold.

Wrap the encoding selector labels in t() per the repository's
translated user-facing text requirement.

* [AI] Drop iso-8859-1 from the CSV encoding selector

TextDecoder resolves the iso-8859-1 label to the windows-1252 decoder
per the WHATWG encoding spec, so the option was redundant and could
mislead users into expecting true ISO-8859-1 decoding. windows-1252
already covers ISO-8859-1 content; keep the alias accepted in
decodeCsvBytes with a clarifying comment and an alias test.

* [AI] Make the iso-8859-1 alias test distinguish Windows-1252

The alias test now uses a fixture containing the 0x80 byte, which
windows-1252 decodes as the euro sign while a true ISO-8859-1 decoder
would produce a C1 control character, so the assertion actually
verifies the windows-1252 alias semantics.

* [AI] Simplify CSV encoding detection to BOM and explicit selection

Follow the review suggestion: the byte order mark selects UTF-16
LE/BE and everything else decodes as UTF-8; other encodings are
handled by the manual per-account selector this PR adds. Drop the
speculative BOM-less UTF-16, windows-1252 fallback, and corrupted
UTF-8 heuristics along with their fixtures and tests.

---------

Co-authored-by: François Lafleur <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* [AI] Migrate create-folders migration to TypeScript

* [AI] Add release note for create-folders migration

* [AI] Preserve migration titles after TypeScript conversion

* [AI] Reject duplicate normalized migration titles

---------

Co-authored-by: Baris Arı <[email protected]>
Co-authored-by: Baris Ari <[email protected]>
* trigger group balance updates on sync

* note

* coderabbit
* [AI] Keep custom report charts stable with long legends (#5394)

Fixes #5394

* [AI] Use forEach for parameterized report tests

---------

Co-authored-by: Felipe Medici <[email protected]>
* let account-move reassign the account group

* provide a react-aria router to the app

* add account tree keys and pure move helpers

* rebuild the sidebar account list on the react-aria tree with drag and drop

* add a keyboard drag handle to sidebar tree rows

* fix typecheck

* coderabbit

* fix chevron spacing and indentation

* coderabbit
* add feedback link

* note
x-rous and others added 8 commits September 27, 2026 14:57
* [AI] Add light-theme border to redesigned sidebar

Co-authored-by: Copilot <[email protected]>

* [AI] Allow custom themes to override sidebar border

Co-authored-by: Copilot <[email protected]>

* renamed the  css variable for the sidebar right border forclarity (RightBorder) + used exisitng palette colors

---------

Co-authored-by: Copilot <[email protected]>
* fix app failing to start when opened offline after latest pendng migrations change

* feedback
* add images

* add docs

* fix spelling
* [AI] Reserve children of matched bank splits

* [AI] Add split matching release note

* [AI] Avoid split-child lookup during bank matching
Conflict resolutions:
- Monte Carlo run tables: take upstream's rewrite, drop PrivacyFilter
  wrappers (privacy mode is removed in this fork)
- sidebar/Account.tsx: keep the fork's popover-free version, use upstream's
  isTouchDevice() util
- Import-CSV VRT snapshots: take upstream's (need regenerating)

Also restore the side-nav.show-balance-history pref type, which upstream's
experimental redesigned sidebar hover card reads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream ported the classic sidebar's account hover popover (full name,
balance history toggle, notes) into the experimental redesigned sidebar.
This fork already removed that popover from the classic sidebar because
the account page shows the same things, so drop it here too: delete
AccountHoverCard, unwrap the row content, drop the context-menu-open check
that only suppressed the card, and remove the balance history pref again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.