You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2026. It is now read-only.
Repository navigation
[AI] CHE-1023: Enforce denomination in derived report widgets - #132
🤖 Status: Parked — CHE-3439, 2026-11-04 ICT. Head e4440b789e0b1d66b99e41a298973eb58caef980. Preserve the currency continuation stack rooted at #123. The root still has red autofix/lint checks. The stack owner must propagate the CI repair and current master, rerun this layer against its actual base, and reconcile independent PASS on the resulting head. Preserve the existing base branch; do not merge or close layers as duplicates.
Base: CHE-1022 head 560cb66ce42626604203bf16e1d60c6c57e49927 (PR [AI] CHE-1022: Convert calendar report amounts to Main #131; the coordinator comment named af8d06f9, the live head is its child 560cb66c, which only touches Calendar.tsx layout). Trunk base under that stack: 84be7c4eb3ab0716faedcfbc2aad71f209ea789e.
Crossover: each selected account's balance per month is converted to Main once (account + month leaf), then safe-summed. The projection algorithm is unchanged; it receives the converted monthly totals.
Balance forecast: useMainBalanceForecast converts each (account, date) balance before the existing combine/lowest-point code. Accountless schedules stay in Main.
Missing Main, unknown account, missing rate or unsafe amount makes the whole report unavailable (status text, never zero or a mixed sum). Unfinished account data shows loading. Foreign balances show the existing "estimate at current rates" note.
Formula and Monte Carlo output has no trustworthy account denomination: a visible notice is shown when foreign-currency accounts exist; the values are not labeled as converted Main.
Coverage table (all 14 built-in widget types)
Widget
Class
Basis
net-worth-card
Converted
CHE-1016
cash-flow-card
Proven Main-only
on-budget accounts only; unavailable if any on-budget account is not Main (hasOnlyMainCurrencyAccounts)
income-account balances converted per account+month leaf; expense categories are budget categories (on-budget = Main) so proven Main-only
balance-forecast-card
Converted (this PR)
per account+date balance leaves
budget-analysis-card
Proven Main-only
envelope budget-month cells (categories, on-budget); regression test added
age-of-money-card
Proven Main-only
queries filter account.offbudget: false; counts/dates only; regression test added
markdown-card
Dimensionless
static text, no amounts
formula-card
Unsupported arbitrary formula (disclosed)
arbitrary formula output has no denomination; notice shown with foreign accounts; never labeled converted Main
monte-carlo-card
Unsupported (disclosed), remainder
linked pot balances are native account balances; notice shown on card and page when a pot links a foreign-currency account. Converting them (and their persisted startingBalance) is not in this PR: remainder for the coordinator to split
Dates, counts and percentages are unchanged. No historical FX, investment gain accounting, formula unit inference or new forecasting controls.
Related issue(s)
CHE-1023, parent CHE-835 / CHE-821. Stacked on #131.
Testing
Tests added in derived-widget-currency.test.ts (11 tests): mixed-currency crossover, per-leaf rounding (once per balance), Main-only unchanged, missing rate, unknown account, missing Main, loading; forecast conversion incl. accountless and empty completed input; Main-only regressions for age of money (on-budget filter, ages unchanged) and budget analysis.
Check
Result
vitest new test file
PASS (11/11)
vitestsrc/components/reports + src/hooks
PASS 529/529 tests; 1 file Spending.test.tsx FAIL to load: local node_modules is a symlink to another checkout and vite denies dark.css?inline outside root (environment, not product)
tsgo --noEmit (desktop-client)
PASS (only 4 pre-existing errors from ungenerated .pegjs/hyperformula typings in the borrowed node_modules, none in touched files)
oxfmt --check packages/desktop-client/src
PASS
oxlint --type-aware on reports + hooks
2 FAIL, both pre-existing in CHE-1022 files (calendar-spreadsheet.ts, calendar-spreadsheet.test.ts); none in touched files
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! 😃
OCR unavailable — NOT-RUN for cheese-work/actual#132 at head e4440b789e0b1d66b99e41a298973eb58caef980 / base 560cb66ce42626604203bf16e1d60c6c57e49927. multica repo checkout failed because the repository is not configured for this workspace, and the active model is gpt-6-luna rather than the required Sol model. P0/P1/P2 findings were not assessed; no clean-pass claim. Exact-head/base independent non-OCR fallback remains required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Status: Parked — CHE-3439, 2026-11-04 ICT. Head
e4440b789e0b1d66b99e41a298973eb58caef980. Preserve the currency continuation stack rooted at #123. The root still has red autofix/lint checks. The stack owner must propagate the CI repair and current master, rerun this layer against its actual base, and reconcile independent PASS on the resulting head. Preserve the existing base branch; do not merge or close layers as duplicates.Description
CHE-1023 (CHE-835 v3 layer 11/12): enforce Main-currency denomination in derived report widgets. AI-authored (Claude Opus, Multica agent x99-claude-opus).
560cb66ce42626604203bf16e1d60c6c57e49927(PR [AI] CHE-1022: Convert calendar report amounts to Main #131; the coordinator comment namedaf8d06f9, the live head is its child560cb66c, which only touchesCalendar.tsxlayout). Trunk base under that stack:84be7c4eb3ab0716faedcfbc2aad71f209ea789e.useMainBalanceForecastconverts each (account, date) balance before the existing combine/lowest-point code. Accountless schedules stay in Main.Coverage table (all 14 built-in widget types)
hasOnlyMainCurrencyAccounts)convertSankeyCategoryEntries/convertTransferPairsaccount.offbudget: false; counts/dates only; regression test addedstartingBalance) is not in this PR: remainder for the coordinator to splitDates, counts and percentages are unchanged. No historical FX, investment gain accounting, formula unit inference or new forecasting controls.
Related issue(s)
CHE-1023, parent CHE-835 / CHE-821. Stacked on #131.
Testing
Tests added in
derived-widget-currency.test.ts(11 tests): mixed-currency crossover, per-leaf rounding (once per balance), Main-only unchanged, missing rate, unknown account, missing Main, loading; forecast conversion incl. accountless and empty completed input; Main-only regressions for age of money (on-budget filter, ages unchanged) and budget analysis.vitestnew test filevitestsrc/components/reports+src/hooksSpending.test.tsxFAIL to load: localnode_modulesis a symlink to another checkout and vite deniesdark.css?inlineoutside root (environment, not product)tsgo --noEmit(desktop-client).pegjs/hyperformula typings in the borrowednode_modules, none in touched files)oxfmt --check packages/desktop-client/srcoxlint --type-awareon reports + hookscalendar-spreadsheet.ts,calendar-spreadsheet.test.ts); none in touched filesyarn typecheck, fullyarn lint, core workspace tests, browser surfacelocale-fork/GLOSSARY.mdlintChecklist
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
src/hooks/useMainBalanceForecast.tssrc/components/reports/UnconvertedCurrencyNotice.tsxsrc/components/reports/spreadsheets/report-currency.tssrc/components/reports/reports/CrossoverCard.tsxsrc/components/reports/spreadsheets/crossover-spreadsheet.tssrc/components/reports/reports/monte-carlo/MonteCarloCard.tsxsrc/components/reports/reports/BalanceForecastCard.tsxsrc/components/reports/reports/FormulaCard.tsxsrc/components/reports/reports/Crossover.tsxsrc/components/reports/reports/BalanceForecast.tsxsrc/components/reports/reports/monte-carlo/MonteCarlo.tsxsrc/components/reports/reports/Formula.tsxsrc/components/reports/reports/monte-carlo/MonteCarloRunDetailTable.tsxView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
No assets were smaller
Unchanged
loot-core
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
api
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
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