Skip to content
This repository was archived by the owner on Nov 20, 2026. It is now read-only.

[AI] fix(currency): preserve Main-only cash-flow semantics (CHE-1017) - #123

Draft
congvc-dev wants to merge 2 commits into
masterfrom
author/CHE-1017/01a104de-1e37-71e6-9d05-8b8d81cc66a8
Draft

congvc-dev wants to merge 2 commits into
masterfrom
author/CHE-1017/01a104de-1e37-71e6-9d05-8b8d81cc66a8

Conversation

@congvc-dev

@congvc-dev congvc-dev commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 Status: Parked — CHE-3439, 2026-11-04 ICT. Head fafc3f3be2391f4deecb1b2d01bd4e3a9130e436. CI is red: autofix.ci App is not installed; lint failed on locale-fork/GLOSSARY.md before master repair #125. An exact-head Anthropic PASS already exists on CHE-1017. After CI repair #137 is available on the branch, merge current master, rerun CI and reconcile review coverage. A rerun alone reuses the old merge ref. Preserve this currency-stack root.

Closes CHE-1017
Refs CHE-835

Preserves Main-only cash-flow membership and labels, reports unavailable for missing Main or mixed on-budget currencies, and retains the existing transaction filters and transfer treatment. Adds daily/concise regressions and Main preference browser coverage.

Author checks: focused Vitest 5/5; web typecheck PASS; lint PASS; git diff --check PASS; disposable Main preference browser test PASS. The three cash-flow graph VRT snapshots were updated only for the Main-enabled test fixture; strict assertion-mode rerun timed out in beforeEach, so VRT is NOT PASS. PR remains draft pending verification.


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 44 14.13 MB → 14.14 MB (+2.81 kB) +0.02%
loot-core 1 4.67 MB 0%
api 2 3.88 MB 0%
cli 1 8.02 MB 0%
crdt 1 11.16 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
44 14.13 MB → 14.14 MB (+2.81 kB) +0.02%
Changeset
File Δ Size
src/components/reports/reports/CashFlowCard.tsx 📈 +1.07 kB (+22.14%) 4.83 kB → 5.89 kB
src/components/reports/reports/CashFlow.tsx 📈 +1.1 kB (+11.95%) 9.22 kB → 10.32 kB
src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx 📈 +675 B (+11.12%) 5.93 kB → 6.59 kB
src/components/reports/graphs/CashFlowGraph.tsx 📉 -21 B (-0.26%) 7.75 kB → 7.73 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/ReportRouter.js 1.54 MB → 1.54 MB (+2.81 kB) +0.18%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/index.js 1.78 MB 0%
static/js/BackgroundImage.js 121.09 kB 0%
static/js/DateSelect.js 2.37 MB 0%
static/js/FormulaEditor.js 767.24 kB 0%
static/js/ManageRules.js 83.15 kB 0%
static/js/NotesTagFormatter.js 25.94 kB 0%
static/js/PayeeRuleCountLabel.js 12.81 kB 0%
static/js/ScheduleEditForm.js 75.41 kB 0%
static/js/SchedulesTable.js 171.25 kB 0%
static/js/TourHost.js 169.22 kB 0%
static/js/TourProvider.js 1.54 kB 0%
static/js/TransactionList.js 79.22 kB 0%
static/js/TransactionList2.js 168.62 kB 0%
static/js/Value.js 1.8 MB 0%
static/js/bootstrapHyperFormula.js 302 B 0%
static/js/ca.js 170.64 kB 0%
static/js/client.js 452.05 kB 0%
static/js/columns.js 673.76 kB 0%
static/js/de.js 186.43 kB 0%
static/js/en-GB.js 13.69 kB 0%
static/js/en.js 271.71 kB 0%
static/js/es.js 183.73 kB 0%
static/js/fr.js 178.59 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 151.91 kB 0%
static/js/months.js 593.39 kB 0%
static/js/narrow.js 290.14 kB 0%
static/js/nb-NO.js 135.89 kB 0%
static/js/nl.js 151.78 kB 0%
static/js/pl.js 148.93 kB 0%
static/js/pt-BR.js 178.74 kB 0%
static/js/ru.js 211 kB 0%
static/js/theme.js 31.68 kB 0%
static/js/uk.js 211.35 kB 0%
static/js/useAccountBalances.js 220.92 kB 0%
static/js/useFormatList.js 10.4 kB 0%
static/js/useLocalPref.js 97.2 kB 0%
static/js/useReducedMotion.js 594 B 0%
static/js/vi.js 15.89 kB 0%
static/js/wide.js 285.94 kB 0%
static/js/workbox-window.prod.es5.js 7.21 kB 0%
static/js/zh-Hans.js 107.31 kB 0%
static/js/zh-Hant.js 130.92 kB 0%

loot-core

Total

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

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.CfRaXv_7.js 4.67 MB 0%

api

Total

Files count Total bundle size % Changed
2 3.88 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 3.88 MB 0%
models.js 0 B 0%

cli

Total

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

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
cli.js 8.02 MB 0%

crdt

Total

Files count Total bundle size % Changed
1 11.16 kB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 11.16 kB 0%

@github-actions github-actions Bot added the AI generated PR authored with AI assistance label Oct 4, 2026
@congvc-dev
congvc-dev added this pull request to stack #114 October 4, 2026 04:01
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review October 4, 2026 04:44
@congvc-dev
congvc-dev marked this pull request as draft October 4, 2026 08:42
@congvc-dev
congvc-dev force-pushed the author/CHE-1017/01a104de-1e37-71e6-9d05-8b8d81cc66a8 branch from 51d10ef to 6b1408c Compare October 4, 2026 09:33
@autofix-troubleshooter

Copy link
Copy Markdown

Hi! I'm the autofix logoautofix.ci troubleshooter bot.

It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃

@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review October 4, 2026 10:04
@congvc-dev

Copy link
Copy Markdown
Collaborator Author

OCR instrument receipt @ 6b1408c68dacc72f6b3e3184ddd0b1d866619489 — ocr v1.12.11, review model claude-opus-5-5 (sub2api), built-in rules. 0 P0 · 0 P1 · 4 P2 (nested ternary, duplicated formatter/message, loading-state page replaced).

Full findings with file:line on CHE-1017. Instrument output — the reviewer seat must confirm or reject each finding in its verdict; not a review seat, no merge authority.

@congvc-dev
congvc-dev force-pushed the author/CHE-1017/01a104de-1e37-71e6-9d05-8b8d81cc66a8 branch 2 times, most recently from e74026f to 7a95428 Compare October 4, 2026 11:41
Base automatically changed from author/CHE-1016/01a103e2-a3e8-7723-96f2-3a8f8d0bbde0 to master October 4, 2026 11:41
@congvc-dev
congvc-dev force-pushed the author/CHE-1017/01a104de-1e37-71e6-9d05-8b8d81cc66a8 branch from 7a95428 to fafc3f3 Compare October 4, 2026 11:41
@congvc-dev

Copy link
Copy Markdown
Collaborator Author

OCR instrument receipt (ocr v1.12.11, keyed lane, model claude-opus-5-5) @ fafc3f3b: 4 files reviewed, 1 P1, 3 P2, 0 P0.

  • P1 cash-flow-spreadsheet.tsx:38-42 — Main-only check uses useAccounts (open accounts only) but report queries don't exclude closed on-budget accounts, so a closed non-Main account can leak into totals. (Part confirmed against source; the useAccounts-error sub-claim is not confirmed.)
  • P2 CashFlowCard.tsx:221 nested ternary; CashFlowCard.tsx:119 duplicated formatMainCurrency/unavailable message with CashFlow.tsx; CashFlow.tsx:78 deprecated useSyncedPrefs + whole-prefs memo dependency.

Instrument output — the reviewer seat must confirm or reject each finding in its verdict. Full receipt on CHE-1017.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

AI generated PR authored with AI assistance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants