Repository navigation
Replace "convert to schedule" prompt with inline button - #8588
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hello contributor! We would love to review your PR! Before we can do that, please make sure:
A quick note on volume: please get one PR reviewed and merged before opening several more. A stack of simultaneous, similar PRs from one author is reviewed slowly, and low-effort, untested, or undisclosed-AI PRs may be closed without a detailed review. We do this to reduce the TOIL the core contributor team has to go through for each PR and to allow for speedy reviews and merges. For more information, please see our Contributing Guide. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthroughFuture transactions now use explicit Schedule actions on desktop and mobile. Shared upcoming-length presets and defaults are centralized. Desktop scheduling supports confirmation, split transactions, notifications, and keyboard shortcuts. Automatic conversion during transaction saves was removed. ChangesSchedule contracts and settings
Schedule creation
Estimated code review effort: 4 (Complex) | ~60 minutes Mergeability Score: ⚪ Minimal · up to This change replaces the conversion prompt with an inline scheduling action and centralizes the upcoming-schedules setting. No actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant NewTransaction
participant TransactionsTable
participant schedule-actions
participant ConvertToScheduleModal
NewTransaction->>TransactionsTable: request scheduling
TransactionsTable->>schedule-actions: calculate future transaction window
alt beyond upcoming window
TransactionsTable->>ConvertToScheduleModal: open confirmation
ConvertToScheduleModal->>TransactionsTable: confirm or cancel
end
TransactionsTable->>schedule-actions: create one-time schedule
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (3)
packages/loot-core/src/shared/schedules.test.ts (1)
472-479: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRemove the unnecessary type assertion.
toEqualaccepts the readonly tuple directly, so the cast adds no safety.Proposed fix
expect(valuesFromOptions).toEqual( - UPCOMING_LENGTH_PRESET_VALUES as readonly string[], + UPCOMING_LENGTH_PRESET_VALUES, );As per coding guidelines, prefer
satisfiesover type assertions such asasand non-null assertions (!) for type narrowing.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/loot-core/src/shared/schedules.test.ts` around lines 472 - 479, Remove the unnecessary `as readonly string[]` assertion from the `expect(valuesFromOptions).toEqual` call in the `preset values and options align` test, passing `UPCOMING_LENGTH_PRESET_VALUES` directly while preserving the existing comparison.Source: Coding guidelines
packages/desktop-client/src/components/schedules/index.tsx (1)
42-44: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAvoid manual memoization for this button handler.
No non-compiled consumer requiring a stable callback identity is shown; use a regular handler and let the React Compiler optimize it.
As per coding guidelines, omit manual
useCallback,useMemo, andReact.memoin desktop React code unless a non-compiled dependency requires stable identity.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/components/schedules/index.tsx` around lines 42 - 44, Remove manual useCallback memoization from the onDiscover handler and define it as a regular function while preserving its dispatch(pushModal({ modal: { name: 'schedules-discover' } })) behavior. Remove the now-unneeded dependency array and any associated import.Source: Coding guidelines
packages/desktop-client/src/components/settings/ScheduleSettings.tsx (1)
36-38: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename or remove the inverted predicate wrapper.
nonCustomUpcomingLengthValuesreturns whether the value is custom, making its callers unnecessarily error-prone.
packages/desktop-client/src/components/settings/ScheduleSettings.tsx#L36-L38: useisCustomUpcomingLengthdirectly or rename the wrapper toisCustomUpcomingLength.packages/desktop-client/src/components/schedules/UpcomingLength.tsx#L33-L34: apply the same name/removal so both settings surfaces use the same clear predicate.As per coding guidelines, use descriptive variable names with auxiliary verbs, such as
isLoadedandhasError.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/components/settings/ScheduleSettings.tsx` around lines 36 - 38, The predicate wrapper in packages/desktop-client/src/components/settings/ScheduleSettings.tsx lines 36-38 is misleading because nonCustomUpcomingLengthValues delegates to isCustomUpcomingLength; remove the wrapper or rename it to isCustomUpcomingLength and update its callers. Apply the same naming/removal in packages/desktop-client/src/components/schedules/UpcomingLength.tsx lines 33-34 so both surfaces use the clear custom-value predicate consistently.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx`:
- Line 625: Update TransactionEdit’s mobile future-transaction save flow to read
the showConvertToSchedulePrompt preference and only open the convert-to-schedule
modal when it is enabled. When disabled, continue through the regular save path,
preserving the existing behavior for enabled prompts.
In `@packages/desktop-client/src/components/settings/ScheduleSettings.tsx`:
- Around line 148-150: Update the CustomUpcomingLength integration in
ScheduleSettings so its render-driven onChange callback does not persist
preferences. Control or synchronize the custom input from tempValue, and move
setUpcomingLength to the actual user input-change path only, preventing repeated
saves and stale local values from overwriting externally synced preferences.
In
`@packages/desktop-client/src/components/transactions/TransactionList.test.tsx`:
- Around line 101-109: Update the beforeEach hook in TransactionList tests to
use vi.clearAllMocks() instead of vi.resetAllMocks(), preserving the mocked
pushModal implementation and its configured return value while still clearing
call history. Keep the useSyncedPref default setup unchanged.
In `@packages/desktop-client/src/components/transactions/TransactionList.tsx`:
- Around line 364-370: Update the showConvertPrompt-disabled branch in
TransactionList so onRefetch runs only after the asynchronous onCancel save
completes; await or chain onCancel before invoking onRefetch, while preserving
the existing early return and cancel-as-transaction behavior.
---
Nitpick comments:
In `@packages/desktop-client/src/components/schedules/index.tsx`:
- Around line 42-44: Remove manual useCallback memoization from the onDiscover
handler and define it as a regular function while preserving its
dispatch(pushModal({ modal: { name: 'schedules-discover' } })) behavior. Remove
the now-unneeded dependency array and any associated import.
In `@packages/desktop-client/src/components/settings/ScheduleSettings.tsx`:
- Around line 36-38: The predicate wrapper in
packages/desktop-client/src/components/settings/ScheduleSettings.tsx lines 36-38
is misleading because nonCustomUpcomingLengthValues delegates to
isCustomUpcomingLength; remove the wrapper or rename it to
isCustomUpcomingLength and update its callers. Apply the same naming/removal in
packages/desktop-client/src/components/schedules/UpcomingLength.tsx lines 33-34
so both surfaces use the clear custom-value predicate consistently.
In `@packages/loot-core/src/shared/schedules.test.ts`:
- Around line 472-479: Remove the unnecessary `as readonly string[]` assertion
from the `expect(valuesFromOptions).toEqual` call in the `preset values and
options align` test, passing `UPCOMING_LENGTH_PRESET_VALUES` directly while
preserving the existing comparison.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 04798f59-edf5-4237-b7e9-c8064837a994
📒 Files selected for processing (19)
packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsxpackages/desktop-client/src/components/schedules/CustomUpcomingLength.tsxpackages/desktop-client/src/components/schedules/ScheduleEditForm.tsxpackages/desktop-client/src/components/schedules/UpcomingLength.tsxpackages/desktop-client/src/components/schedules/index.tsxpackages/desktop-client/src/components/settings/ScheduleSettings.tsxpackages/desktop-client/src/components/settings/index.tsxpackages/desktop-client/src/components/transactions/TransactionList.test.tsxpackages/desktop-client/src/components/transactions/TransactionList.tsxpackages/docs/docs/schedules.mdpackages/docs/docs/settings/index.mdpackages/docs/static/img/convert-to-schedule.webppackages/docs/static/img/schedules-settings.webppackages/docs/static/img/schedules/schedules-overview.webppackages/loot-core/src/server/schedules/app.tspackages/loot-core/src/shared/schedules.test.tspackages/loot-core/src/shared/schedules.tspackages/loot-core/src/types/prefs.tsupcoming-release-notes/feature-schedule-settings.md
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/update-vrt |
|
👋 The introduction of more knobs in the settings page will be quite controversial as per design guidelines of AB.
I understand the intention and pain point here though, but I think we should talk this through and consider alternatives before jumping to implementation and adding yet another knob. |
|
@MatissJanis yeah I went back and forth on that myself on whether it would be better to have multiple settings in a non-settings page vs changing the existing dialog to move it over to the centralized spot. I ended up with this approach since I personally think I would go to the "Settings" tab if I wanted to look for a way to configure things. I don't change the "Upcoming" length very often, but when I've done it in the past I've gone to "Settings" first and then sat there puzzled for a moment before I remember to switch over to "Schedules". I'm happy to go with a different approach though. Is there a specific forum where this should be discussed? Or a specific person I should tag on this to get their thoughts? |
|
Yeah that "upcoming length" setting isn't great either. I would have loved if instead we could click a separator line (between schedules and existing transactions) in the transaction page to expand/collapse the length, but that was a more complicated lift at the time.. Maybe after the transaction table rewrite is done we can revisit that again. The community discord is a great place for discussions. Quite an active and vibrant community there. Feel free to tag me. The overall idea is to offer opinionated workflows for users. Which sometimes means saying "no" to adding yet another config knob. In this particular case I wonder if a better solution would be a checkbox in that modal for "do not show this again". We would still need to solve the problem of "how do I bring it back if it is disabled?" though.. |
✅ Deploy Preview for actualbudget-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Gotcha, I'll see about joining the discord and bringing it up there for discussion |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
VRT tests ❌ failed. View the test report. To update the VRT screenshots, comment |
|
/update-vrt |
Auto-generated by VRT workflow PR: actualbudget#8588
youngcw
left a comment
There was a problem hiding this comment.
This all seems good to me. @MatissJanis @matt-fidd Any Complaints?
|
I'll take a look at this later today, although it looks good at a glance |
|
Apologies, I didn't get a chance today, happy to merge with at least one more review, whether from me or someone else if they beat me to it |
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/desktop-client/src/components/modals/ConvertToScheduleModal.tsx (1)
84-99: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winUpdate or remove the stale
aria-labelon the confirm button.The visible label is now
Create schedule anyway, but the accessible name is stillConvert to Schedule. The accessible name no longer contains the visible text, so speech-input users cannot activate the button by what they read (WCAG 2.5.3 Label in Name). TheTranschild already provides an accessible name.🛠️ Proposed fix
<InitialFocus> <Button - aria-label={t('Convert to Schedule')} variant="primary"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/components/modals/ConvertToScheduleModal.tsx` around lines 84 - 99, Update the confirm Button in ConvertToScheduleModal so its accessible name matches the visible “Create schedule anyway” label: remove the stale aria-label and rely on the existing Trans child, or change aria-label to include the visible text.
🧹 Nitpick comments (5)
packages/desktop-client/src/components/transactions/TransactionsTable.test.tsx (2)
1172-1196: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRestore the spy in a teardown hook.
pushModalSpy.mockRestore()runs after the assertions. If an assertion throws, the spy stays installed and leaks into later tests in this file. Move the restore intoafterEach.♻️ Proposed refactor
describe('Schedule button for future-dated new transactions', () => { const scheduleButtonSelector = '[data-testid="new-transaction"] [data-testid="schedule-button"]'; + + afterEach(() => { + vi.restoreAllMocks(); + });🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/components/transactions/TransactionsTable.test.tsx` around lines 1172 - 1196, Move the pushModalSpy cleanup from the test body into an afterEach teardown hook, ensuring the spy created around modalsSlice.pushModal is restored even when assertions fail; remove the inline mockRestore call.
1155-1170: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAssert the
schedule/createpayload, not only that it was called.
createScheduleMockis checked withtoHaveBeenCalled()in every test. A regression in the conditions built bycreateSingleTimeScheduleFromTransaction, for example a wrong date, amount, or account condition, would still pass. Assert the argument for at least the in-window case.♻️ Proposed refactor
await waitFor(() => { expect(createScheduleMock).toHaveBeenCalled(); }); + expect(createScheduleMock.mock.calls[0][0]).toMatchObject({ + schedule: { posts_transaction: true }, + conditions: expect.arrayContaining([ + { op: 'is', field: 'date', value: '2017-01-02' }, + ]), + }); expect(getTransactions().length).toBe(5);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/components/transactions/TransactionsTable.test.tsx` around lines 1155 - 1170, Strengthen the in-window schedule test by asserting the payload passed to createScheduleMock, not just that it was called. Build the expected conditions from the transaction entered through createSingleTimeScheduleFromTransaction, including the correct date, amount, and account, while preserving the existing transaction-count assertion.upcoming-release-notes/create-schedule-from-future-transaction.md (1)
6-6: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShorten the note to one sentence.
The note is two sentences and about 45 words. A CI check enforces the release-note length.
📝 Proposed wording
-Replace the "Convert to Schedule" prompt for future-dated transactions with a new "Schedule" button, which asks for confirmation only when the scheduled date falls beyond your upcoming length setting. You can also press Ctrl+Shift+Enter (Cmd+Shift+Enter on macOS) in the new transaction row to create a schedule. +Add a "Schedule" button for future-dated transactions, replacing the old "Convert to Schedule" prompt.Based on learnings, files in
upcoming-release-notes/*.mdshould stay concise, ideally one non-technical sentence, because a CI check flags longer notes.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@upcoming-release-notes/create-schedule-from-future-transaction.md` at line 6, Shorten the release note to one concise sentence describing the new “Schedule” button and its conditional confirmation behavior, omitting the keyboard shortcut and extra implementation details.Source: Learnings
packages/desktop-client/src/util/schedule-actions.ts (1)
117-127: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winTranslate the generated schedule name and drop the epoch timestamp.
The name appears in the Schedules view and in the notes column of preview rows. Users see
Auto-created future transaction (Jan 02, 2017) - 1767225600000. Usetfromi18next, which is the repo pattern for non-React modules, and remove the raw timestamp.♻️ Proposed refactor
+import { t } from 'i18next';const formattedDate = monthUtils.format(transaction.date, 'MMM dd, yyyy'); - const timestamp = Date.now(); - const scheduleName = `Auto-created future transaction (${formattedDate}) - ${timestamp}`; + const scheduleName = t('Future transaction ({{formattedDate}})', { + formattedDate, + });Based on learnings, server-side and non-React modules use
import { t } from 'i18next'for translations.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/util/schedule-actions.ts` around lines 117 - 127, Update the generated schedule name in the schedule creation flow to use i18next’s t function, importing it as established for non-React modules, and remove the Date.now timestamp from the name. Preserve the formatted transaction date while translating the full user-visible “Auto-created future transaction” label.Source: Learnings
packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx (1)
831-835: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse the shared
isTemporaryIdhelper.Import it from
@actual-app/core/shared/transactionsand replace the localstartsWith('temp')check. The shared helper is already used across the desktop client and recognizes any ID containingtemp.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx` around lines 831 - 835, Update the condition in TransactionEdit to import and use the shared isTemporaryId helper from `@actual-app/core/shared/transactions`, replacing the local startsWith('temp') check while preserving the existing non-adding and ID presence checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx`:
- Around line 828-858: Separate the error handling in createSchedule so
createSingleTimeScheduleFromTransaction has its own failure path and
send('transaction-delete', ...) is handled independently. Preserve the
schedule-success state when deletion fails, show a deletion-specific error
without retrying schedule creation, and only navigate or report full success
after the existing successful flow completes.
In `@packages/desktop-client/src/components/modals/ConvertToScheduleModal.tsx`:
- Around line 47-62: Update the warning content in ConvertToScheduleModal to use
two independent Trans elements, passing daysUntilTransaction as the count for
its phrase and upcomingDays as the count for its phrase. Ensure each count
pluralizes “day” versus “days” independently, without introducing a Plural
helper, while preserving the existing warning text and formatting.
In `@packages/desktop-client/src/components/schedules/CustomUpcomingLength.tsx`:
- Around line 25-33: Update the timePeriod initialization in
CustomUpcomingLength so a non-custom tempValue without a '-' separator defaults
its unit to 'day' instead of leaving timePeriod[1] undefined. Preserve the
existing custom handling and parsing for values that include an explicit unit,
ensuring the effect does not persist strings such as '7-undefined'.
In `@packages/desktop-client/src/components/transactions/TransactionsTable.tsx`:
- Around line 3412-3421: Update the Ctrl/Cmd+Shift+Enter handler around
afterSave so it checks latestState.current.newTransactions[0] with
isFutureTransaction before calling preventDefault and stopPropagation. Only
suppress the event and schedule rerender when the transaction is future-dated;
otherwise leave the event available for normal Shift+Enter navigation.
In `@packages/docs/docs/schedules.md`:
- Line 120: Update the mobile behavior description in the schedules
documentation to clearly state that the Schedule button appears for both new
future-dated transactions and edits to existing future-dated transactions.
Document that converting an existing transaction creates the schedule and then
deletes the original transaction, without implying mobile and desktop behave
identically.
---
Outside diff comments:
In `@packages/desktop-client/src/components/modals/ConvertToScheduleModal.tsx`:
- Around line 84-99: Update the confirm Button in ConvertToScheduleModal so its
accessible name matches the visible “Create schedule anyway” label: remove the
stale aria-label and rely on the existing Trans child, or change aria-label to
include the visible text.
---
Nitpick comments:
In
`@packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsx`:
- Around line 831-835: Update the condition in TransactionEdit to import and use
the shared isTemporaryId helper from `@actual-app/core/shared/transactions`,
replacing the local startsWith('temp') check while preserving the existing
non-adding and ID presence checks.
In
`@packages/desktop-client/src/components/transactions/TransactionsTable.test.tsx`:
- Around line 1172-1196: Move the pushModalSpy cleanup from the test body into
an afterEach teardown hook, ensuring the spy created around
modalsSlice.pushModal is restored even when assertions fail; remove the inline
mockRestore call.
- Around line 1155-1170: Strengthen the in-window schedule test by asserting the
payload passed to createScheduleMock, not just that it was called. Build the
expected conditions from the transaction entered through
createSingleTimeScheduleFromTransaction, including the correct date, amount, and
account, while preserving the existing transaction-count assertion.
In `@packages/desktop-client/src/util/schedule-actions.ts`:
- Around line 117-127: Update the generated schedule name in the schedule
creation flow to use i18next’s t function, importing it as established for
non-React modules, and remove the Date.now timestamp from the name. Preserve the
formatted transaction date while translating the full user-visible “Auto-created
future transaction” label.
In `@upcoming-release-notes/create-schedule-from-future-transaction.md`:
- Line 6: Shorten the release note to one concise sentence describing the new
“Schedule” button and its conditional confirmation behavior, omitting the
keyboard shortcut and extra implementation details.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 24a2b86e-da92-47f2-9bcc-10cb7170f3d4
⛔ Files ignored due to path filters (3)
packages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-keyboard-shortcuts-modal-visuals-1-chromium-linux.pngis excluded by!**/*.pngpackages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-keyboard-shortcuts-modal-visuals-2-chromium-linux.pngis excluded by!**/*.pngpackages/desktop-client/e2e/help-menu.test.ts-snapshots/Help-menu-Check-the-keyboard-shortcuts-modal-visuals-3-chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (15)
packages/desktop-client/src/components/mobile/transactions/TransactionEdit.tsxpackages/desktop-client/src/components/modals/ConvertToScheduleModal.tsxpackages/desktop-client/src/components/modals/KeyboardShortcutModal.tsxpackages/desktop-client/src/components/schedules/CustomUpcomingLength.tsxpackages/desktop-client/src/components/schedules/UpcomingLength.tsxpackages/desktop-client/src/components/transactions/TransactionList.tsxpackages/desktop-client/src/components/transactions/TransactionsTable.test.tsxpackages/desktop-client/src/components/transactions/TransactionsTable.tsxpackages/desktop-client/src/modals/modalsSlice.tspackages/desktop-client/src/util/schedule-actions.tspackages/docs/docs/schedules.mdpackages/loot-core/src/server/schedules/app.tspackages/loot-core/src/shared/schedules.test.tspackages/loot-core/src/shared/schedules.tsupcoming-release-notes/create-schedule-from-future-transaction.md
🚧 Files skipped from review as they are similar to previous changes (4)
- packages/loot-core/src/server/schedules/app.ts
- packages/loot-core/src/shared/schedules.ts
- packages/loot-core/src/shared/schedules.test.ts
- packages/desktop-client/src/components/schedules/UpcomingLength.tsx
…#8588) * feat: centralize schedule settings * feat: undo settings-based approach * feat: new approach with inline button * fix: make it work on mobile too * feat: add shift+enter as keyboard shortcut * feat: code review comments * Update VRT screenshots Auto-generated by VRT workflow PR: actualbudget#8588 * feat: address all coderabbit comments --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* [AI] Fix flickering text on the formula dashboard card (#8676)
`useFormulaExecution` keys its effect on the identity of the `queries`
object. `Formula.tsx` honours that by passing a stable ref plus a
`queriesVersion` counter, but `FormulaCard` passed `meta?.queries || {}`,
which allocates a fresh object every render.
React Compiler would normally memoize that away, but it skips
`FormulaCard` entirely: [email protected] bails out of any
component using a default value in its destructured props (`meta = {}`).
So the effect re-ran on every render, and since each run toggles
`isLoading`, it rendered again -- an endless loop that swapped the card's
value for the loading skeleton over and over.
- Depend on the serialized contents of `queries`/`namedExpressions`
instead of their identity, reading the live objects through refs. This
fixes every caller and still re-executes on real query edits, which
matters because `meta.queriesVersion` is declared on the widget type but
never actually persisted.
- Clear `isLoading` on the invalid-formula early return, which previously
left it stuck on.
- Drop the destructured default from `FormulaCard` so React Compiler
compiles it again, and use a module-level constant for the empty queries
object.
- Only show the skeleton when there is no value yet, so a refresh leaves
the previous value on screen rather than blanking the card.
Co-authored-by: Claude Opus 5 <[email protected]>
* [AI] Add impeccable design skill and project design context (#8653)
* [AI] Add impeccable design skill wiring and project design context
Commit only the shareable parts of the impeccable frontend-design skill
setup: defensive hook wiring (.codex, .cursor, .github hooks that no-op
when the skill is not installed locally) and the generated design
context files (PRODUCT.md, DESIGN.md, DESIGN.json) derived from the
existing component-library tokens and themes. The skill payload itself
is gitignored; developers install it locally.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Recommend installing the impeccable skill to agents at boot
AGENTS.md documents the install step, a Claude Code SessionStart hook
surfaces it when the skill is missing from the checkout, and the Codex
and Copilot hook wiring echoes the same hint instead of silently
no-oping.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Mention DESIGN.json among committed design context files
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Keep DESIGN.json out of the repo as a generated artifact
It is a regenerable sidecar of DESIGN.md consumed only by the locally
installed impeccable live panel, so gitignore it like the skill payload.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Clarify that DESIGN.md hex values are the light-theme mapping
Co-Authored-By: Claude Fable 5 <[email protected]>
---------
Co-authored-by: Claude Fable 5 <[email protected]>
* [AI] Add blog post announcing sidenav design competition winner (#8724)
* [AI] Add blog post announcing sidenav design competition winner
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EKXivBzxyCeySkqbsqCC9Z
* [AI] Remove dashes from sidenav winner blog post
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EKXivBzxyCeySkqbsqCC9Z
* [AI] Use absolute docs links in blog post previews to fix paginated tag pages
Relative ../../docs/ links resolve against the page URL, so when a post's
truncated preview renders on a paginated listing page (e.g.
/blog/tags/announcement/page/2) the link breaks and fails the Docusaurus
build. Absolute /docs/ paths resolve correctly everywhere.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EKXivBzxyCeySkqbsqCC9Z
---------
Co-authored-by: Claude <[email protected]>
* fix monte carlo explaination of fees and taxes (#8732)
* GoCardless: derive Alior payee from the card transaction description (#8738)
* GoCardless: derive Alior payee from the card transaction description
Alior Bank stopped returning creditorName on outgoing transactions in
early July 2026. Without it, formatPayeeName falls through to debtorName,
which on an outgoing transaction is the account holder, so every card
payment is booked against the user instead of the merchant.
The merchant is still available behind a fixed prefix in
remittanceInformationUnstructured, so take it from there when creditorName
is missing.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* rename release note to the PR number
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
* [AI] Fix category autocomplete keyboard selection (#8570)
* [AI] Fix category autocomplete selection indices
* test: update category autocomplete VRT snapshot
* test: update dark category autocomplete VRT snapshot
* test: update midnight category autocomplete VRT snapshot
---------
Co-authored-by: youngcw <[email protected]>
* [AI] feat(budget analysis report): allow selecting future months in date range (#8722)
* [AI] feat(budget-report): allow selecting future months in date range
Extend the allMonths picker list 12 months past the current month so
users can select future months for long-term goal planning.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* [AI] fix(budget-report): preserve running balance for future months with no budget data
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* [AI] fix(budget-report): fix balance zeroing for future months with no budget data
Use monthBalance as the next month's running balance instead of
carryoverToNextMonth, which is 0 for months where no category has
any budget or spending data.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* [AI] fix(budget-report): fix import path in budget-analysis-spreadsheet test
* [AI] fix: added in release note
Assisted-by: ClaudeCode:claude-opus-5
* [AI] fix(budget-report): address CodeRabbit review findings
Addresses both review comments from CodeRabbit on PR #8722:
1. "Keep later-dated transaction months selectable" — the month-range
endpoint now takes the later of the latest transaction month and December
of next year, so existing future-dated transactions are no longer hidden
from the picker. This PR had replaced latestMonth with a hardcoded
December-of-next-year, which dropped transactions dated beyond it.
2. "Preserve the no-carryover reset when propagating balances" —
running-balance propagation goes back to carrying over only what actually
carries over, instead of the full month balance. Using monthBalance had
re-included negative balances for categories with carryover disabled, so
an overspend both dragged forward through later months and still surfaced
as an overspending adjustment. A month with no budget data at all now
passes the running balance through untouched, which fixes the original
future-month bug without defeating the carryover reset.
Extracts summarizeMonthCategories, getNextRunningBalance and
getLastSelectableMonth so this logic is unit-testable, and replaces the
self-referential range tests with ones that exercise the real functions.
Assisted-by: ClaudeCode:claude-opus-5
* [AI] test(budget-report): cover never-budgeted months in data detection
CodeRabbit's follow-up review on PR #8722 suggested setting hasBudgetData
from cell presence rather than cell value. That change would be wrong here:
envelope-budget-month builds its response by iterating the category list, so
it emits a cell for every category in every month and normalizes missing
sheet values to 0 (see loot-core/src/server/budget/app.ts). Cells are always
present, so presence-based detection would report every month as populated
and re-introduce the running-balance bug the previous commit fixed.
The zero-value case it worries about is not reachable in a way that changes
the result: leftover already folds in the previous month's balance, so a
month with a real balance carrying in always has a non-zero cell and is
detected correctly. When all three are zero there is nothing to carry, and
both detection strategies agree.
Adds a regression test pinning the never-budgeted month to
hasBudgetData=false, and documents why detection is value-based so the
suggestion is not re-applied later.
Assisted-by: ClaudeCode:claude-opus-5
---------
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
* add cleared to rule conditions (#8740)
* add cleared to rule conditions
* test
* add to docs
* note
* Fix amount resetting to zero (#6056) (#8733)
* fix amount resetting to zero (#6056)
* Add release notes
* Update upcoming-release-notes/fix-amount-reset-when-clicking-cleared.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add tests suggested by CodeRabbit
* Remove null assertion in tests (Code review change)
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* [AI] Make summary card formula fit narrow screens (#8583)
* [AI] Make summary card formula fit narrow screens
Scale the sigma, parentheses spacing, filter text and result down on
narrow widths, stack the fraction above the result instead of using the
equals signs, and shrink the fraction bar margins so the percentage
formula no longer overflows on mobile.
* [AI] Reword summary card release note
* [AI] Stop summary range labels from wrapping onto the sigma
The `to`/`from` labels are absolutely positioned with `right: -30` inside a
wrapper whose content box collapses to 6px on narrow screens, giving them a
36px shrink-to-fit budget. `Aug 26` at 11px needs ~37px, so it wrapped onto a
second line that landed on the sigma glyph. `whiteSpace: nowrap` is applied
unconditionally — desktop had the same latent margin (50px budget, ~46px of
text).
Also pulls the repeated conditionals in the touched style objects into named
values: the two fraction numbers now share one style object, and the paired
margin/width ternaries and the grid track list are each stated once.
* [AI] Block AI agents from creating GitHub issues (#8711)
* [AI] Prohibit agents from creating GitHub issues via agent hooks
* [AI] Simplify issue-creation guard after review
---------
Co-authored-by: Claude <[email protected]>
* Update pikapods.md PWA intro sentence for clarity (#8690)
* Update pikapods.md PWA intro sentence for clarity
added a sentence to define PWA to make section easier to understand to people who are unfamiliar
* Update pikapods.md
* Revise PWA installation instructions for clarity
Updated the description of using a PWA for clarity and conciseness.
---------
Co-authored-by: Michael Clark <[email protected]>
* Skip overspent sources when a named cleanup pool collects funds (#8749)
The end of month cleanup did not check whether a category set to send its
leftover funds to a named pool actually had a positive balance. An overspent
category was still processed, so its negative balance was budgeted back onto
itself and subtracted from the amount available to the pool, pushing the
overspending onto the other categories in the group.
Global sources already guard against this and warn instead. Apply the same
check to named pool sources so an overspent category is skipped and reported.
Closes #8739
Co-authored-by: Sanidhya Awasthi <[email protected]>
Co-authored-by: youngcw <[email protected]>
* [AI] Fix phantom overspending after deleting a category (#8756)
* [AI] Fix phantom overspending after deleting a category
Deleting a category with a negative budgeted amount left a permanent
"Overspent in [Month]" that could never be cleared, because the category
is no longer visible in the UI.
`handleCategoryChange` added the category's `leftover`/`carryover` cells
to `last-month-overspent` when a category was created or un-deleted, but
never removed them when it was tombstoned. The deleted category keeps its
budgeted amount while its spend is transferred away, so its `leftover`
goes negative and keeps counting as overspending.
`addDeps` and `removeDeps` now both derive their work from a single
`getDeps` list so they cannot drift apart again. This also covers
`buffered-auto`, which had the same add-only asymmetry for income
categories.
Closes #8754
Co-Authored-By: Claude Opus 5 <[email protected]>
* clear comment
---------
Co-authored-by: Claude Opus 5 <[email protected]>
* Replace "convert to schedule" prompt with inline button (#8588)
* feat: centralize schedule settings
* feat: undo settings-based approach
* feat: new approach with inline button
* fix: make it work on mobile too
* feat: add shift+enter as keyboard shortcut
* feat: code review comments
* Update VRT screenshots
Auto-generated by VRT workflow
PR: #8588
* feat: address all coderabbit comments
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* [AI] Pin bundle size baselines to the base commit (#8753)
* Pin bundle comparisons to the base commit
* Organize bundle run resolver files
* Pin resolver checkout to the trusted base
* Resolve bundle baselines from the merge base
* Pair bundle baselines with the PR base
* Strengthen bundle workflow regression coverage
* Delete packages/ci-actions/src/build-runs/size-compare-workflow.test.ts
* [AI] Fix duplicate payees in rules after merging payees (#6486) (#8719)
* [AI] fix: deduplicate mapped rule ids (#6486)
* [AI] docs: add release note for #6486
* chore: retrigger CI (flaky sharp/libvips build on setup job)
---------
Co-authored-by: SomSamantray <>
* [AI] Default new transaction amount filters to positive values (#8726)
* [AI] Default new amount filters to positive values
Initialize new transaction amount filters with a positive zero sign so values entered without toggling the sign match the displayed greater-than and less-than operators. Preserve the sign of existing filters and cover both paths with component tests.
* [AI] Handle the amount filter directly instead of adding a GenericInput prop
Takes @tim-smart's suggested shape. `FiltersMenu` now renders `AmountInput`
itself for the amount field, and `GenericInput` is left byte-identical to
master — the `zeroSign` prop it grew in the previous commit is gone.
Three reasons this is the better shape, beyond it being tidier:
- The prop was not actually general. `FIELD_INFO` has exactly one `type:
'number'` entry, `amount`, so `field === 'amount'` and `type === 'number'`
select the same thing. A prop on a shared component serving one field and
one call site is the same specificity, moved somewhere harder to find.
- It type-checks. The `GenericInput` call site carries four
`@ts-expect-error`s, and the previous commit's `value={type === 'number' ? 0
: ...}` sat under one of them, so nothing verified the value shape matched
the `number` variant. The new branch has no suppressions.
- `zeroSign` had been declared at the top level of `GenericInputProps`,
outside the discriminated union, so it was accepted on `id`, `date`,
`boolean` and `string` inputs where it does nothing.
Dropping the `<View style={{ flex: 1, ...style }}>` wrapper costs nothing:
`AmountInput`'s own container already sets `flex: 1` and spreads `...style`
after its defaults, so `marginTop: 10` still lands. Using `value` rather than
`formattedValue` is equivalent here too — `formattedValue` only diverges for
`field === 'date' && subfield === 'month'`.
`subfieldToOptions(field, subfield)` is hoisted to a `fieldOptions` const
rather than called twice inside the new branch; it was already being called
three times per render.
The regression test moves from `GenericInput.test.tsx` up to `FiltersMenu`,
which is an improvement rather than a concession: #8725 reports "pick greater
than, type 150, and it filters as greater than -150". The new test drives the
editor and asserts on what it submits, so it reproduces that; the old one only
proved a prop was plumbed through. Verified it fails without the fix, with
`value: -15000` against the expected `15000`.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Simplify amount filter test comments
---------
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Tim Smart <[email protected]>
* [AI] Fix bulk edit date picker formatting regression (#8765)
* [AI] Fix bulk edit date picker formatting regression
The react-aria calendar that replaced Pikaday rendered a compact grid
pinned to the left of the bulk edit modal, with the header arrows
spanning the full width and six-row months clipped by the fixed modal
height. Stretch the grid to the container in embedded mode (same
technique as DayRangeCalendar) and let the date modal size to its
content, restoring the pre-v26.8.0 layout. Fixes #8654.
* [AI] Give embedded date picker containers definite widths
The embedded calendar's 100%-wide grid blows up shrink-to-fit
containers to their max width: on wide screens the bulk edit modal
stretched to 90vw. Pin the date modal to tokens.breakpoint_small and
the formula timeframe picker popover to its existing 260px clamp so
the stretched grid fills a bounded container, matching the v26.7.0
look at any screen size. Extend the e2e test with a wide-viewport
assertion on the modal width.
* [AI] fix(api): translate default rule stage at API boundary (#8689)
Co-authored-by: cakeni <[email protected]>
* [AI] Use noble Playwright image for the desktop VRT job to compile against Electron 43 headers (#8770)
The /update-vrt workflow always runs from the default branch, so this
container fix must land there for the desktop shard to build native modules
against Electron 43's V8 headers, which gcc 11/12 (jammy) cannot parse.
Matches the change to the functional-desktop-app job in e2e-test.yml on the
Electron 43 upgrade branch (#8769).
Co-authored-by: Claude Fable 5 <[email protected]>
* feat: add Palenight to the custom theme catalog (#8771)
* feat: add Palenight to the custom theme catalog
* docs: release note for the Palenight theme
* Don't send a starting balance of 0 when only the starting date is set (#8750)
Linking a bank account defaulted the custom starting balance to 0. Editing
only the starting date kept that default and sent it to the server, which
treats any defined balance as the real opening balance instead of deriving
one from the bank, so the account opened out of sync.
Leave the balance undefined until the user enters one. The amount input still
shows 0, and a balance the user deliberately sets to 0 is still sent.
Closes #8105
Co-authored-by: Sanidhya Awasthi <[email protected]>
* [AI] Migrate health-check script to TypeScript (#8599)
* [AI] Migrate health-check script to TypeScript
* [AI] Include TypeScript scripts in knip entries
* [AI] Validate health status response type
* Change title util to TypeScript (#8553)
* Migrate title util to TypeScript
* Add release notes
* Type the options parameter to preserve custom specials
* Move title options type inline
* [AI] Fix bank sync showing the wrong bank for a second connection (#8625)
Bank records were looked up by the provider identifier alone. SimpleFIN
reports the institution's domain as that identifier, so two separate
logins at the same bank (e.g. two connections for different family
members) collapsed into a single bank record, and accounts linked
through the second connection were listed under the first connection's
name on the Bank Sync page.
Match on the institution name as well, so connections that report
different institution names get their own bank record while relinking
the same connection still reuses the existing one. Also handle
institutions reported as a plain string, which previously bound
`undefined` as a SQL parameter and threw.
Co-authored-by: Claude Fable 5 <[email protected]>
* [AI] Add Peruvian Sol (PEN) to the currency list (#8773)
Co-authored-by: Claude Opus 5 <[email protected]>
* :arrow_up: Upgrade electron to 43 (#8769)
* upgrade electron to 43
* [AI] Use noble Playwright image for desktop jobs to compile against Electron 43 headers
Electron 43's V8 headers expand to 'class [[deprecated(...)]] __attribute__((visibility("default")))'
when node-gyp defines USING_V8_SHARED and V8_DEPRECATION_WARNINGS. gcc 11 and 12 (jammy) cannot
parse a GNU attribute after a standard attribute in a class-head; gcc 13 (noble) can. Verified by
compiling the headers with g++-11/12 (fail) and g++-13/14 (pass) in Ubuntu 22.04/24.04 containers.
Co-Authored-By: Claude Fable 5 <[email protected]>
* glboal setup for playwright due to new download behaviour
* Update VRT screenshots
Auto-generated by VRT workflow
PR: #8769
* upgrading runner
* add exit codes back
* build for arm64
---------
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* sidebar pt. 1: add account grouping models and handlers (#8764)
* add account_group schema and field
* add loot-core handlers
* add handlers to the API
* cleanup type docs
* note
* coderabbit feedback
* add _id suffix
* coderabbit: use await in batchMessages
* [AI] Long note values will show a full tooltip on hover in the transactions table (#8759)
* [AI] Long note values will show a full tooltip on hover in the transactions table
* Fix typo in tx-notes-tooltip.md
* [AI] Rename tags from the Tags page (#8752)
* [AI] Rename tags from the Tags page
Adds a Rename action to the tag row context menu. Renaming updates the
tag record and rewrites the hashtag in every transaction note that uses
it, so users no longer have to find and replace it by hand.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Address PR feedback and simplify tag rename
Insert the new tag name literally in notes (replacement tokens like $&
were interpreted before), drop a non-null assertion in the ManageTags
test, and remove dead code from the tag InputCell.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Close the tag rename input when Enter is pressed
The 'tag' field is not registered with the table navigator, so the
navigator's Enter handler fell through to flashInput, which reopened
the rename input 100ms after it closed. Handle Enter on the input
itself: commit the rename and exit the editing state.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Keep tag rename tests focused
* [AI] Reject deleted tag rename collisions
* [AI] Reference the navigator type for renderItem onEdit
The renderItem prop receives navigator.onEdit verbatim, so point its
type at TableNavigator['onEdit'] instead of duplicating the signature.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Offer tag rename from the selection menu
Rename appears in the selection menu when exactly one tag is selected,
reusing the inline rename editor the row context menu already opens.
The table navigator moves up to ManageTags so the toolbar can start the
edit. Choosing Rename clears the selection first: the closing menu
restores focus to its trigger, which would otherwise leave focus outside
the input with the delete/hide hotkeys still live.
Co-Authored-By: Claude Opus 5 <[email protected]>
* Apply suggestion from @tim-smart
* [AI] Register the tag field with the table navigator
Tab and Shift+Tab in the rename input navigated wrongly while 'tag' was
absent from the navigator's field list: Tab moved backwards to 'select'
and Shift+Tab jumped to the previous row's description. Registering the
field makes both move within the row as expected.
The local Enter handler stays. Without it the navigator carries editing
on to the next row's tag field, which after the list re-sorts is an
unrelated tag; the submit test now asserts no editor is left open.
Also constrain the rename menu item with `satisfies MenuItemObject` in
place of `as const`, which additionally validates the action name.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Drop tag rename from the context menu for a multi-selection
Delete and Hide act on every id in the selection, while Rename edits the
one row it was opened on. Offer it only when those are the same tag.
Right-clicking a row outside the selection still offers Rename, since the
menu then acts on that row alone.
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Tim Smart <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
* [AI] Add payeeNameNormalization option to import transactions API (#8710)
* [AI] Add rawPayeeName option to import transactions API
Title casing lowercases the whole string before re-capitalizing
each word, so acronyms in bank strings don't survive it:
"New York NY" becomes "New York Ny".
Custom importers that already supply payee names in final form
had no way to opt out.
* [AI] Rename import option to payeeNameNormalization
A boolean named after the implementation detail is a
poor public API. Replace `rawPayeeName?: boolean` with
`payeeNameNormalization?: 'original' | 'title-case'`, defaulting to
'title-case' so existing behavior is unchanged.
* [AI] Cover imported_payee in all transactions-import tests
* Do not allow payeeNameNormalization to be null
* [AI] Convert reconcileTransactions trailing flags to an options object
`reconcileTransactions` had grown to nine positional parameters with mixed
true/false defaults, so `payeeNameNormalization` would have landed as a bare
string in ninth position. Replace the trailing flags on `reconcileTransactions`
and `matchTransactions` with a typed options object, and rename the internal
`rawPayeeName` boolean to `payeeNameNormalization` so the API option keeps its
name all the way down to `normalizeTransactions`.
* reduce repetition to improve maintainability
---------
Co-authored-by: Tim Smart <[email protected]>
* [AI] docs(migration): explain nYNAB credit card payment overbudgeting in To Budget (#8784)
[autofix.ci] apply automated fixes
* [AI] Fix mobile report drill-downs landing on the unfiltered accounts screen (#8774)
Issue: on mobile, tapping a category in a report (or a tag on the tags
screen) navigated to /accounts with filter conditions in the location
state, but the mobile accounts screen never read them — the user just
saw the plain account list. The same navigation worked on desktop
because the wide account view applies location.state.filterConditions
(resizing the browser to full width revealed the filtered list). Mobile
budget drill-downs are unaffected; they use their own /categories/:id
route.
Fix: the mobile accounts page now redirects such navigations to
/accounts/all, and the all-accounts transaction list translates the
conditions via make-filters-from-conditions and applies them to its
query, mirroring the desktop applyFilters flow in Account.tsx. A
"Filters applied" chip next to the balance shows the list is filtered,
scheduled-transaction previews are excluded while filtered, and
searching within the filtered list keeps the filters.
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: youngcw <[email protected]>
* Add option to show transfers in Sankey chart Spent view (#8780)
* Add transfers as option to Spent view
* Fix recursion error happening in otherGrouping
* Filter out transfers to off-budget accounts
* Add release note
* Aggregate transfers to get net result and avoid cycles
* [autofix.ci] apply automated fixes
* Adjustments based on Rabbit feedback
* [AI] Fix hidden node allocation to place transfer-account nodes properly
* Apply coderabbit test improvement
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* [AI] Prevent infinite recursion in layer number resolution
* [AI] Make Sankey cyclic layer caching deterministic across query order
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix schedules not showing as paid (#8801)
* fix schedules not showing as paid
* [AI] tests
* note
* coderabbit
* [AI] test updates
* [AI] Bump nanoid to 3.3.18 (#8808)
* [AI] Bump nanoid to 3.3.18
* [AI] Add release note for nanoid update
* add tim (#8813)
* :scroll: Reorganising the docs (#8796)
* reorganising the docs a bit
* remove border on sidebar
* Envelope budgeting typo fix (#8818)
* Fixed Envelope Budgeting typo
Fixed a typo on the Envelope Budgeting page that said "once size fits all" instead of "one size fits all".
* Add release notes
* [AI] Fix category and group menus not opening after a rename (#8763)
* Fix category and group menus not opening after a rename
useRefEventListener resolved ref.current once on mount and only rebound
when the ref object identity or the event name changed. A ref object never
changes identity and mutating current does not re-run effects, so the
listener stayed on whatever element existed at mount.
Renaming a budget category or group exposes the InputCell's input, which
unmounts the row's display node and puts a brand new one back when editing
ends. The contextmenu listener was left on the detached original, so
useContextMenu's synthetic event and a plain right-click both landed on an
element with no listener and the menu never opened until a reload.
Re-resolve the element after every render and rebind only when it has
actually moved. Unmount cleanup moves to its own effect so that re-running
the binding effect does not unbind and rebind on every render.
Fixes #8760
* Add a SidebarGroup rename regression test
SidebarGroup has its own context-menu trigger and InputCell rename path,
so cover it the same way SidebarCategory is covered.
* Mirror the listener target into state
Replaces the manual binding bookkeeping with a state-backed target, so the
binding effect gets ordinary dependencies and cleanup again.
The dep-less effect that resolves the element trips exhaustive-deps because
it calls setState; the bail-out when the element has not moved is what stops
the update chain, so it carries a suppression with a reason.
* fix flaky e2e transactions test (#8833)
* fix flaky test
* note
* 🔖 (26.9.0) (#8789)
* 🔖 (26.9.0)
* Generate release notes for v26.9.0
* add release notes for 26.9.0
* tweak wording
* Generate release notes for v26.9.0
* Generate release notes for v26.9.0
* wording tweaks
* [AI] Add Tim Smart to blog authors
* update authors
* Use relative doc links in 26.9.0 release notes
* Update packages/docs/blog/2026-09-01-release-26-9-0.md
Co-authored-by: Julian Dominguez-Schatz <[email protected]>
* tweak schedule button
* fix links
* Apply suggestion from @jfdoming
Co-authored-by: Julian Dominguez-Schatz <[email protected]>
---------
Co-authored-by: github-merge-queue <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tim Smart <[email protected]>
Co-authored-by: Julian Dominguez-Schatz <[email protected]>
* Add actual-budget-mcp to Community Projects (#8836)
* Add actual-budget-mcp to Community Projects
* [autofix.ci] apply automated fixes
* Keep Actual Bench with its description, and apply review wording
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* [AI] Respect the date format preference in daily and weekly report intervals (#8715)
* [AI] test(reports): cover date-preference derivation for interval labels
Daily and Weekly custom-report intervals render with a hardcoded
'yy-MM-dd' format and never consult Settings -> Formatting -> Dates.
These tests describe the intended behaviour ahead of the fix: the two
day-level intervals derive their format from the preference, Monthly and
Yearly are untouched by it because they carry no day/month ambiguity, and
an unset preference keeps producing today's output.
Fails at this commit -- getIntervalFormat does not exist yet.
Relates to #5902
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] fix(reports): derive interval label format from the date preference
ReportOptions.intervalFormat maps Daily and Weekly to a literal
'yy-MM-dd', so those labels render in year-month-day order regardless of
Settings -> Formatting -> Dates. Reproduced on edge.actualbudget.org
with the preference set to MM/DD/YYYY: a weekly custom report's axis
reads 26-04-26, and the Net Worth graph on Weekly reads 26-03-01.
Add getIntervalFormat(interval, dateFormat), deriving the format from
the preference for the two day-level intervals and leaving Monthly and
Yearly untouched -- neither spells out a day and a month, so neither can
disagree with the preference.
Nothing calls it yet; the call sites follow in the next commit.
Relates to #5902
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] fix(reports): use the date preference for daily and weekly labels
Route the nine interval-label call sites through getIntervalFormat so
Daily and Weekly labels follow Settings -> Formatting -> Dates. Custom
reports and the Net Worth graph share the same map, so both were wrong
in the same way and both are fixed here.
The components read the preference through useDateFormat. The two
spreadsheets are plain functions rather than components, so their
callers pass dateFormat in, and it joins the memo dependencies -- the
labels have to change when the preference does.
NetWorthGraph's weekly tick filter is fixed in the same commit rather
than a later one, and that is deliberate: it parses point.x back with
the format that produced it, so changing the format without it would
silently return Invalid Date, make getDay produce NaN, and drop the
weekly gridlines with no error anywhere. Splitting them would leave a
commit that renders correct labels and a broken graph.
Verified: desktop-client is green (65 files, 919 tests). The 4 failures
in the full run are loot-core server tests -- Windows file locking and
load-dependent timeouts, present before this branch, and this change
touches no loot-core file.
Relates to #5902
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] docs(release-notes): add note for the interval date format fix
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] fix(reports): rebuild interval labels when the date preference changes
The effect that populates the interval dropdown calls onSetAllIntervals,
which formats each label with getIntervalFormat(interval, dateFormat).
onSetAllIntervals is an effect event, so it reads the current preference
without re-triggering -- meaning the dropdown kept stale labels until an
unrelated dependency happened to change.
Add dateFormat to the dependency list. The graph memo and NetWorthGraph's
tick memo already had it; this was the one call site that did not.
Found in review by CodeRabbit on #8715.
Relates to #5902
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] test(reports): expect interval labels to keep the full year
Review feedback on #8715: a date format preference containing `YYYY` was
showing as `YY` in report interval labels. The earlier revision shortened it
deliberately, to keep tick labels narrow, but that is not what the preference
says and it has been reversed in review.
These tests now assert the new rule and fail against the current helper:
Daily and Weekly return the preference verbatim, the four-digit year survives,
and the no-preference fallback is `yyyy-MM-dd`.
The Monthly, Yearly and unknown-interval cases are untouched and still pass --
that boundary is what the change must not disturb.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] fix(reports): use the date format preference exactly as it is set
Drops the `yyyy` -> `yy` substitution, so a preference of `MM/dd/yyyy` now
labels daily and weekly intervals as `MM/dd/yyyy` rather than `MM/dd/yy`.
The substitution existed to keep tick labels as narrow as the hardcoded format
they replaced. That trade was made without asking, and the review on #8715
decided against it: the preference says what it says. Labels are wider as a
result, which is the intended consequence rather than a side effect.
Turns the tests added in the previous commit green. Monthly and Yearly still
bypass the preference entirely.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] fix(reports): honour the date format on dashboard report cards
A saved custom report shown as a dashboard card still labelled its daily and
weekly intervals with the old hardcoded format. GetCardData builds that card's
data through the same createCustomSpreadsheet as the full report view, but was
the one call site not passing `dateFormat`.
It went unnoticed because the parameter is optional, so the incomplete call
type-checked and silently fell back to the default. Every call site of that
spreadsheet was audited; this was the only one missing it.
`dateFormat` is also added to the useMemo dependencies. Without it the card
holds its old formatter after the preference changes, until something else
happens to invalidate the memo -- the same defect caught in review on
CustomReport.tsx earlier in this PR.
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: youngcw <[email protected]>
* fix release automation with branch protection (#8842)
* open PRs instead of pushing
* use release notes on the release branch only
* monte carlo linked account feedback (#8847)
* add spacing tokens (#8834)
* add spacing tokens
* note
* add more tokens
* fix schedules moved before weekend occasionally becoming stuck (#8854)
* centralise weekend solving logic
* [AI] tests
* note
* coderabbit
* extend test to 5 attempt case
* :chart_with_upwards_trend: Monte carlo - pair each year with its historical inflation on historic simulations (#8852)
* pair inflation with the histroical returns
* update docs images
* making column a bit wider
* clarifying comment on source of inflation
* add the links to the sources in the comment too
* docs: add bank2actual (US bank statement converter) to Community Projects (#8723)
* docs: add bank2actual to community projects
* docs: section intro covers file converters as well as API sync
---------
Co-authored-by: youngcw <[email protected]>
* :chart_with_upwards_trend: Monte Carlo - Fix floor and ceiling/boundaries anchors (#8861)
* fix floor and ceiling and boundaries rules when retirement starts after years of no spending
* updated doc
* [AI] Add mergeTransactions to the API (#8877)
* [AI] Add mergeTransactions to the API
Wires the existing transactions-merge handler through the API layer so
integrations (MCPs, etc.) can merge duplicate transactions. Merge semantics
and validation are unchanged, and are shared with the UI merge action.
* [AI] Reject merging a transaction with itself
The guard counted ids, not distinct ids, so the same id
twice passed every other check, resulting in the deleted
transaction. Unreachable from the UI; reachable through
the new API method.
* Type mergeTransactions ids as a two-element tuple
* sidebar pt. 2: UI to manage groups and assign accounts (#8832)
* add experimental flag and account group plumbing
* add group management modal
* coderabbit
* wording suggestion
* move to autocomplete
* update points payment docs (#8841)
* For balance forecast report cards/widgets, use the granularity defined in the report (daily / monthly) instead of always monthly (#8885)
* fix: use dynamic granularity in BalanceForecastCard component
* add release notes
* address review comments. use granularity in countForecastScheduledOccurrences
* stop posting welcome checklist on maintainer PRs (#8884)
* stop posting welcome checklist on maintainer PRs
* note
* [AI] Migrate FormulaCard to DateRangePicker #8449 (#8557)
* [AI] reports: factor shared date range presets and add coverage
* Add release notes
* Fix unused variable
* [autofix.ci] apply automated fixes
* fix test after comment
* [autofix.ci] apply automated fixes
* Align current-quarter with DateRangePicker.maxDate
* [autofix.ci] apply automated fixes
* Fix comment by coderabbit
* [autofix.ci] apply automated fixes
* Fix nitpick
* [autofix.ci] apply automated fixes
* Change type from Feature to Enhancements
* Add more clamping to dates
* Fix race condition between loading date and opening component
* Set value in case of error when reaching backend
---------
Co-authored-by: Ronan Presle <ronan.presle>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* :chart_with_upwards_trend: Monte carlo - Historic sim - custom allocation mix (#8881)
* historical pots now show the historical return and std deviation instead of just being disabled
* monte carlo custom allocations
* updtae error message
---------
Co-authored-by: Claude Fable 5 <[email protected]>
* sidebar pt. 3: redesigned shell (#8882)
* add sidebar theme tokens and shared text styles
* extract useSyncStatus hook
* extract SidebarShell from the old sidebar
* add the redesigned sidebar shell
* Bump postcss-selector-parser (#8844)
Bumps the npm_and_yarn group with 1 update in the / directory: [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser).
Updates `postcss-selector-parser` from 6.1.2 to 6.1.4
- [Release notes](https://github.com/postcss/postcss-selector-parser/releases)
- [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-selector-parser/compare/v6.1.2...6.1.4)
---
updated-dependencies:
- dependency-name: postcss-selector-parser
dependency-version: 6.1.4
dependency-type: indirect
dependency-group: npm_and_yarn
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* [AI] Add Tags to bulk edit notes (#8866)
* Add Tags to bulk edit notes
* Add width breakpoint to keep inital width even with alot of tags
* Keep width and use the suggesting behavior from editing notes in TransactionEdit.tsx
* Fix Coderabbit findings
* Add Tab to complete and # Button for mobile view
* coderabbit finding
---------
Co-authored-by: dreptschar <[email protected]>
* :new: News feed feature (#8802)
* whats new experimental feature
* pointing preview builds at preview docs and fixing some niggles
* notification bell and fixing some bits
* moving the number down a bit
* update release notification
* optional feature flag so users can turn it off if they dont want it
* cleanup
* add discord link to page for more news
* feedback
* feedback
* filter all posts by a tag to ensure only the ones we tag are announcement
* feed should be served from github instead of docusaurus
* remove advertising rules in discord cause they're not app related
* [autofix.ci] apply automated fixes
* release pipeline update so the news is updated in the release pr
* fail instead of skip
* fix edge case where slugs are bad or no date
* remove experimental
* notifications intead of whats new
* adding hr styling
* docs
* Update VRT screenshots
Auto-generated by VRT workflow
PR: #8802
* Add in_app_notification flag to release blog post
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* [AI] Keep net worth stable across transfer dates (#8829)
* [AI] Fix net worth across interval transfers
* [AI] Cover transfers spanning report range
* [AI] Stabilize transaction notes E2E input
* [AI] Support reading secrets from a file with a _FILE environment variable (#8868)
* [AI] Support reading any setting from a file with a _FILE environment variable
Adds the `_FILE` environment-variable suffix convention used by Docker
secrets and Kubernetes file-mounted secrets. Setting `<VAR>_FILE` to a path
makes Actual read that setting's value from the file, so secrets can be
mounted rather than passed through the environment.
This covers both config systems: every env-backed setting in the sync
server's convict schema, and every env-backed setting in the CLI.
On the sync-server side the override is applied after `loadFile()` and
before `validate()`, using `set()`. convict re-imports the environment at
the end of both `load()` and `loadFile()`, so an override applied any
earlier would be clobbered by the plain environment variable.
A `_FILE` variable pointing at an unreadable file is a hard error rather
than a silent fallback, so a secret that failed to mount stops startup
instead of leaving the server running with an empty value.
Refs #5233, #7686. Supersedes the approach in #5235, which applied the
override before `loadFile()` and so had the precedence backwards.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Address review feedback on _FILE support
- Treat a `_FILE` variable that is set but empty as an unreadable path rather
than as unset. Previously it fell back to the plain environment variable,
which contradicted the documented behaviour and hid a failed mount. This
applied to both the CLI and the sync server; regression tests added for both.
- Read `_FILE` variables by their literal name in the CLI's resolution chain,
so the `_FILE` variables are greppable in the config module and the
precedence order is visible in the chain itself. This also keeps `utils.ts`
free of filesystem access.
- List the remaining supported variables in the CLI environment variable table.
- Rename a test to describe what it asserts.
- Narrow the release note, which overstated the scope: `_FILE` applies to
settings that already have an environment variable binding.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Limit _FILE support to secrets
Following the convention set by Docker's official images, where only secrets
get a _FILE variant, this narrows the scope to:
- sync server: ACTUAL_OPENID_CLIENT_SECRET, ACTUAL_GITHUB_TOKEN
- CLI: ACTUAL_PASSWORD, ACTUAL_SESSION_TOKEN, ACTUAL_ENCRYPTION_PASSWORD
ACTUAL_HTTPS_KEY and ACTUAL_HTTPS_CERT already accept a path, so they get no
_FILE variant.
Both sides now name the `_FILE` variables literally at the point of use, so
they are greppable and the precedence order is visible in the call itself.
On the sync server this replaces the generic schema walk, which had to mirror
convict's internal rule for telling a setting from a group; the schema no
longer has to be hoisted to a named const, so load-config.js is reduced to an
import and the override loop.
Also documents ACTUAL_ENCRYPTION_PASSWORD, which the CLI supports but neither
environment variable table listed.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Use a descriptive name for the temp directory in the config file env tests
Addresses the remaining review nitpick: `dir` did not say what the directory
held. Renamed in both test files for consistency.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Trim comments and documentation per review
- Shorten the readFileEnv doc comments in both packages, and drop the note in
load-config.js about which variables are deliberately excluded, keeping the
two lines explaining why the override runs between loadFile and validate.
- Reduce the server documentation to a short note and move it to the top of
the page.
- Point at the runtime's own secret support (e.g. Docker secrets) in the CLI
security notes rather than suggesting a hand-made file.
- Drop the per-variable OpenID section, which repeated the note above it.
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Simplify the wording of the _FILE precedence note
Replaces the sentence in the server docs, the CLI docs and the CLI README with
a shorter statement of precedence, and drops the note about stopping on an
unreadable file, which can be inferred.
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Matt Fiddaman <[email protected]>
* :chart_with_upwards_trend: Monte carlo - withdrawal rule breakdown (#8863)
* fix floor and ceiling and boundaries rules when retirement starts after years of no spending
* updated doc
* added a breakdown of how the withdrwal rule was calculated
* add a bit of a gap between table and explainations
* unneded comment
* [AI] Fix CLI failing to push changes to end-to-end encrypted budgets (#8800)
* [AI] Fix CLI failing to push changes to end-to-end encrypted budgets
`withConnection` opens an already-cached budget with `api.loadBudget`, which
does not register the end-to-end encryption key. Any command that mutates then
fails on the push with `SyncError: encrypt-failure` / `isMissingKey`, and every
later command fails with `We had an unknown problem opening "<budget>"`, so the
failure looks like a corrupt budget file rather than a missing key.
Only the `download` branch passed the password, via `api.downloadBudget`, so the
key was registered only on the first run or after the cache was invalidated.
Reads kept working because they only decode, which hid the problem until a write
was attempted.
Route encrypted budgets through `downloadBudget` on the sync branch. With the
budget already present locally, `api/download-budget` runs `key-test`,
`load-budget` and `sync-budget` and returns without re-downloading the file, so
this registers the key at no extra cost. `lastDownloadedAt` is deliberately left
untouched, since nothing is downloaded.
The `skip` branch is left alone: `decideSyncAction` always returns `sync` when
`encrypted` is set, so it is unreachable for encrypted budgets.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [AI] Add release note
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
* Add api.setPreference(id, value) for setting synced preferences (#8893)
* Added api.setPreference({id, value})
Added the setPreference({id, value}) function to the api methods to allow api consumers to set SyncedPerfs values.
* Added return type to api.setPreference(id, value)
Added return type and removed unnecessary function comment. Updated api docs with correct return type Promise<void> instead of void.
* Removed useless setPreference persist test
* Type setPreference value by preference key
Hardened type on setPreference so that values are based on the type corresponding to the id. Also updated api doc reference.md
* sidebar pt. 4: accounts list (#8892)
* add account group balance bindings, collapse pref and expand
* add the sidebar account and collapse hooks
* add the redesigned sidebar account list components
* add the account, group and section components
* use the new account list
* increase account row spacing
* declutter pill
* icon hover
* icon tooltips
* change case and maintain heirarchy of on/off budget headers
* dynamically show/hide sync dot based on whether there are bank synced accounts
* tweak expand/collapse icon
* swap icon on expand/collapse
* remove templates in padding
* [AI] Document mobile bank sync refresh (#8908)
* [AI] Merge duplicate Themes/themes directories (#8916)
* [AI] Merge duplicate Themes/themes directories
`packages/component-library/src/Themes` and
`packages/component-library/src/themes` collide on case-insensitive
filesystems (macOS), which makes checkouts of the repo hash differently
there than on Linux. Move the single file in `Themes/` (`Theming.mdx`)
into `themes/` and point the Storybook stories glob at the merged
directory. The docs entry keeps its id and sidebar title.
Fixes #8843
Co-Authored-By: Claude Opus 5 <[email protected]>
* [AI] Fix broken custom themes docs link
The Theming page linked to /docs/experimental/custom-themes, which 404s —
the page lives at /docs/custom-themes/.
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
* Bump the npm_and_yarn group across 1 directory with 5 updates (#8906)
Bumps the npm_and_yarn group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [@humanfs/node](https://github.com/humanwhocodes/humanfs/tree/HEAD/packages/node) | `0.16.7` | `0.16.8` |
| [@xmldom/xmldom](https://github.com/xmldom/xmldom) | `0.8.13` | `0.8.15` |
| [browserslist](https://github.com/browserslist/browserslist) | `4.28.2` | `4.28.9` |
| [fast-uri](https://github.com/fastify/fast-uri) | `3.1.5` | `3.1.7` |
| [qs](https://github.com/ljharb/qs) | `6.15.2` | `6.15.3` |
Updates `@humanfs/node` from 0.16.7 to 0.16.8
- [Release notes](https://github.com/humanwhocodes/humanfs/releases)
- [Changelog](https://github.com/humanwhocodes/humanfs/blob/main/packages/node/CHANGELOG.md)
- [Commits](https://github.com/humanwhocodes/humanfs/commits/node-v0.16.8/packages/node)
Updates `@xmldom/xmldom` from 0.8.13 to 0.8.15
- [Release notes](https://github.com/xmldom/xmldom/releases)
- [Changelog](https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xmldom/xmldom/compare/0.8.13...0.8.15)
Updates `browserslist` from 4.28.2 to 4.28.9
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.28.2...4.28.9)
Updates `fast-uri` from 3.1.5 to 3.1.7
- [Release notes](https://github.com/fastify/fast-uri/releases)
- [Commits](https://github.com/fastify/fast-uri/compare/v3.1.5...v3.1.7)
Updates `qs` from 6.15.2 to 6.15.3
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.15.2...v6.15.3)
---
updated-dependencies:
- dependency-name: "@humanfs/node"
dependency-version: 0.16.8
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: "@xmldom/xmldom"
dependency-version: 0.8.15
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: browserslist
dependency-version: 4.28.9
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: fast-uri
dependency-version: 3.1.7
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: qs
dependency-version: 6.15.3
dependency-type: indirect
dependency-group: npm_and_yarn
...
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump the npm_and_yarn group across 1 directory with 5 updates (#8921)
* Bump the npm_and_yarn group across 1 directory with 5 updates
Bumps the npm_and_yarn group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) | `7.0.1` | `7.0.2` |
| [colord](https://github.com/omgovich/colord) | `2.9.3` | `2.10.0` |
| [joi](https://github.com/hapijs/joi) | `17.13.4` | `17.13.7` |
| [smol-toml](https://github.com/squirrelchat/smol-toml) | `1.6.1` | `1.8.0` |
| [svgo](https://github.com/svg/svgo) | `3.3.4` | `3.3.5` |
Updates `csv-parse` from 7.0.1 to 7.0.2
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/[email protected]/packages/csv-parse)
Updates `colord` from 2.9.3 to 2.10.0
- [Release notes](https://github.com/omgovich/colord/releases)
- [Changelog](https://github.com/omgovich/colord/blob/master/CHANGELOG.md)
- [Commits](https://github.com/omgovich/colord/commits/v2.10)
Updates `joi` from 17.13.4 to 17.13.7
- [Commits](https://github.com/hapijs/joi/compare/v17.13.4...v17.13.7)
Updates `smol-toml` from 1.6.1 to 1.8.0
- [Release notes](https://github.com/squirrelchat/smol-toml/releases)
- [Commits](https://github.com/squirrelchat/smol-toml/compare/v1.6.1...v1.8.0)
Updates `svgo` from 3.3.4 to 3.3.5
- [Release notes](https://github.com/svg/svgo/releases)
- [Commits](https://github.com/svg/svgo/compare/v3.3.4...v3.3.5)
---
updated-dependencies:
- dependency-name: csv-parse
dependency-version: 7.0.2
dependency-type: direct:production
dependency-group: npm_and_yarn
- dependency-name: colord
dependency-version: 2.10.0
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: joi
dependency-version: 17.13.7
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: smol-toml
dependency-version: 1.8.0
dependency-type: indirect
dependency-group: npm_and_yarn
- dependency-name: svgo
dependency-version: 3.3.5
dependency-type: indirect
dependency-group: npm_and_yarn
...
Signed-off-by: dependabot[bot] <[email protected]>
* Bump version from 3.1.1 to 3.1.2
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matiss Janis Aboltins <[email protected]>
* [AI] Respect OFX ENCODING/CHARSET headers when importing files (#8874)
* [AI] Respect OFX ENCODING/CHARSET headers when importing files
Read OFX/QFX files as raw bytes and decode using the encoding declared in the file header instead of always assuming UTF-8. Files declaring CHARSET:8859-1 or 1252 are decoded as windows-1252, and ENCODING:UTF-8 files as UTF-8.
Also converts the 8859-1.qfx fixture to actual Latin-1 bytes (it was saved as UTF-8 despite declaring CHARSET:8859-1, so the test did not exercise the charset path) and adds fixtures and tests for windows-1252 and UTF-8 with non-ASCII content.
Fixes #8872
* [AI] Add release note for OFX charset decoding fix
* Apply suggestion from @coderabbitai[bot]
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: François Lafleur <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Ensure only valid months can be selected in Sankey chart datepicker (#8790)
* Make sure datepicker cannot go before earliest transaction
* [AI] use sendCatch for Sankey budget-month queries
Avoids triggering global server-error notifications when selected months have no budget data.
* Release note
* Revert "[AI] use sendCatch for Sankey budget-month queries"
This reverts commit 89db5a9d8cae2c7e9676eda07e198512cad3099c.
* Add function to calculate bounded month range
* Ensure only valid months can be selected
* Update release note
* Revert "Ensure only valid months can be selected"
This reverts commit 12b3850ec6ba22d7c72cf8580f0cd31a34f2b737.
* Use bounded start and end in createBaseGraphSpreadsheet
* Linting fix
* [AI] Adapt SankeyCard initialization per rabbit comments
* Update release note
* :chart_with_upwards_trend: Monte carlo - Cashflow chart (#8903)
* cashflow chart
* showing years that are unfunded
* update screenshots
* refactor a bit
* fix dead years withdrawal rules
* [AI] migrations: pending messages DB (#8519)
* [AI] Keep older app versions syncing and loading budgets touched by newer versions
Cross-version compatibility for sync and budget files:
- Sync messages referencing tables/columns this client doesn't have yet
(sent by a newer app version) are deferred into a messages_pending
table (coalesced per cell) instead of failing the sync, and replayed
after migrations run on budget load. Deferral applies only to inbound
messages; local writes still surface apply-failure.
- Budgets already migrated by a newer app version now load, as long as
every known migration is present (checkDatabaseValidity tolerance).
- A CI guard (schema introspection over the real migration chain)
enforces that migrations stay additive-only: no dropped/renamed
tables or columns, no constraint changes on existing tables
(NOT NULL, DEFAULT, UNIQUE, CHECK, primary keys), and new synced
tables use a single id primary key with optional columns.
- An "Update available" notification tells the user when deferred
changes are waiting for an app update, re-shown on budget load while
messages remain pending.
Co-Authored-By: Claude Fable 5 <[email protected]>
* [AI] Address review findings for cross-version sync
- Clear messages_pending during sync reset so replaying deferred
messages can't resurrect hard-deleted rows as empty stubs
- Treat an explicit DEFAULT NULL as no usable default in the
additive-migration validator
- Make the CHECK-clause scanner quote/comment-aware so changes behind
a quoted paren can't slip through
- Flag type and DEFAULT changes on existing columns
- Make the deferred-messages notification sticky so it isn't dismissed
during budget load
* [AI] Harden and simplify the additive-migration schema validator
- Ignore CHECK( tokens inside quoted literals and comments by scanning
a masked copy of the stored CREATE TABLE text
- Skip schema snapshots for pre-cutoff migrations in the chain test
- Collapse per-column attribute comparisons into a single changed-keys
check and drop the redundant required-flip branch
* [AI] Harden the cross-version sync deferral and replay flow
Findings from several review rounds of the deferral feature:
- Carry inbound values with unknown serialization formats opaquely
(deferring them like missing columns) instead of wedging sync
- Replay honors last-write-wins against the crdt log, takes a real
UPDATE path so row constraints see the merged row, retries
dependency chains to a fixpoint, drops only deterministic failures,
and aborts safely on possibly-transient errors
- Notify the user when deferred changes are dropped or discarded
(new dropped-messages event), delivered reliably during budget load
- Reset sync counts only real losses toward the discard warning
- Guard replay behind a configured server so serverless-session edits
can't be reverted; ignore legacy spreadsheet_cells messages
- Restore corruption detection for empty migration directories and
narrow the UI's schema-mismatch classification
- Move serialization and notification helpers into their own modules
* [AI] Simplify the cross-version sync branch and shrink its diff
- Hoist the applyMessages callback to a named function, undoing ~280
lines of reindentation churn
- Fold the sync notification helpers into sync/utils.ts
- Drop an unreachable pending-message cleanup clause, a consumer-less
re-export, and a committed empty-fixture directory (mkdtemp instead)
- Tighten review-era comments to their load-bearing constraints
- Skip pointless work: unfiltered return when nothing deferred,
snapshot reuse in the additive chain test
* [AI] Bump pending-messages migration timestamp past latest master migration
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYNhGvhoHHKeAwiCJxfHsN
* [AI] Make messages_pending migration idempotent
Use CREATE TABLE IF NOT EXISTS so budgets that already have the table
from the previous migration id still open after the timestamp bump.
* [AI] Document additive-only migration rules for contributors
Add a README in the migrations folder explaining cross-version sync
constraints, allowed schema changes, and what the additive test misses.
* [AI] Preserve CHECK literal case in migration schema diff
Lowercase SQL tokens outside quoted strings when comparing CHECK
constraints so 'ARCHIVED' and 'archived' are treated as different.
* [AI] Create messages_pending on demand instead of relying on the migration
The browser serves migration files through caches that can lag behind
the app code (stale service-worker precache, unrebuilt dev
environment), producing 'no such table: messages_pending' on every
budget load — and a failed sync batch if a message needed deferring.
The code that uses the table now creates it on first touch, sharing
one copy of the DDL with the (idempotent) migration.
---------
Co-authored-by: Claude Fable 5 <[email protected]>
* [AI] Fix theme colour ordering and custom theme refresh (#8922)
* [AI] Fix theme colour ordering and custom theme refresh
* Apply suggestion from @tim-smart
* [AI] Fix character encoding corruption when importing CAMT files (#8912) (#8913)
* Bump @vitest/mocker from 4.1.10 to 5.0.0 in the npm_and_yarn group across 0 directory (#8923)
* Bump @vitest/mocker in the npm_and_yarn group across 0 directory
Updates `@vitest/mocker` from 4.1.10 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/mocker)
---
updated-dependencies:
- dependency-name: "@vitest/mocker"
dependency-version: 5.0.0
dependency-type: indirect
…
Description
A replacement for the "Convert to Schedule" prompt.
This was initially implemented as a new setting that allowed toggling the prompt off. After feedback from reviewers, it was pivoted to a button instead.
There is also some adjacent cleanup work around the "Upcoming" schedules setting in order to centralize it and DRY things up.
AI disclosure: GitHub Copilot was used to assist with this, particularly for writing the unit tests. I reviewed the diff myself and take full responsibility for it. The release notes, documentation updates, and PR description were all 100% human-written.
Description from the original PR (click to expand)
Adds a new "Schedules" section to the settings page, and adds a setting to allow turning off the "Convert to Schedule" prompt for future-dated transactions. Also moves the "Change Upcoming Length" option from a dialog on the schedules page to that new section in the settings page.Note! I'm aware that this brushes up against the edge of Actual's design philosophy:
This was a consistent pain point for me though, and seemed to be relatively well-received in the feature request issue (linked below), so I thought I would give it a shot. I'm happy to make adjustments if the maintainers would prefer a different approach.
Related issue(s)
Addresses #6537
Testing
Testing the main change:
Testing the adjacent changes:
Checklist
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
src/util/schedule-actions.tsnode_modules/react-is/cjs/react-is.production.min.jssrc/components/common/TransferDirectionIcon.tsxhome/runner/work/actual/actual/packages/loot-core/src/shared/schedules.tssrc/components/transactions/TransactionsTable.tsxsrc/components/mobile/transactions/TransactionEdit.tsxsrc/hooks/useDisplayPayee.tsxsrc/components/modals/KeyboardShortcutModal.tsxnode_modules/react-error-boundary/dist/react-error-boundary.jssrc/components/filters/FiltersMenu.tsxsrc/components/filters/FilterExpression.tsxsrc/components/mobile/MobileNavTabs.tsxsrc/components/autocomplete/TagAutocomplete.tsxsrc/budget/mutations.tssrc/hooks/useCategoryScheduleGoalTemplates.tssrc/components/accounts/Account.tsxsrc/hooks/useSelected.tsxsrc/components/transactions/useTransactionRowContextActions.tssrc/hooks/useCategories.tsnode_modules/@use-gesture/react/dist/use-gesture-react.esm.jssrc/components/modals/ImportTransactionsModal/ImportTransactionsModal.tsxsrc/components/schedules/CustomUpcomingLength.tsxnode_modules/is-absolute-url/index.jssrc/budget/queries.tssrc/browser-preload.jssrc/components/schedules/ScheduleEditForm.tsxsrc/components/modals/ConvertToScheduleModal.tsxnode_modules/react-is/index.jssrc/components/schedules/UpcomingLength.tsxsrc/components/transactions/TransactionList.tsxView detailed bundle breakdown
Added
Removed
Bigger
Smaller
Unchanged
loot-core
Total
Changeset
home/runner/work/actual/actual/packages/loot-core/src/shared/schedules.tsnode_modules/chevrotain/lib_esm/src/parse/parser/parser.jshome/runner/work/actual/actual/packages/loot-core/src/server/transactions/import/parse-file.tsnode_modules/mt940js/lib/parser.jsnode_modules/mt940js/lib/tags.jshome/runner/work/actual/actual/packages/loot-core/src/server/transactions/import/mt9402json.tsnode_modules/mt940js/lib/field86structure.jsnode_modules/mt940js/lib/helperModels.jsnode_modules/mt940js/index.jsView detailed bundle breakdown
Added
Removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
No assets were unchanged
api
Total
Changeset
home/runner/work/actual/actual/packages/loot-core/src/shared/schedules.tsnode_modules/chevrotain/lib_esm/src/parse/parser/parser.jshome/runner/work/actual/actual/packages/loot-core/src/server/transactions/import/parse-file.tsnode_modules/mt940js/lib/parser.jsnode_modules/mt940js/lib/tags.jsnode_modules/mt940js/lib/helperModels.jshome/runner/work/actual/actual/packages/loot-core/src/server/transactions/import/mt9402json.tsnode_modules/mt940js/lib/field86structure.jsnode_modules/mt940js/index.jsView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
Unchanged
cli
Total
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
crdt
Total
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