Commit graph

2 commits

Author SHA1 Message Date
0c6e78b0d8 Add JSON editor for the data files
New page Stammdaten -> JSON-Editor edits the data files of the selected year
and mandator (default Transactions.json) as plain JSON in Monaco (BlazorMonaco
3.5.0, loaded on demand): highlighting, folding, live syntax errors, search
and replace with regex, format.

RawDataRepository saves only validated text: strict JSON (unknown properties
rejected with line/column), unique non-empty Ids, transactions referencing
existing accounts, accounts still used by transactions not removed. It refuses
if the file changed since loading, backs up the previous version to
backup/{mandator}/{year}/json-{timestamp}/, and saves through BaseRepository
so caches are refreshed.

- Hub MaximumReceiveMessageSize raised to 8 MB (files are several hundred KB)
- unsaved-guard.js asks before leaving with unsaved changes; NavigationLock
  doesn't apply because routing between per-page interactive pages is static

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:52:20 +02:00
e00368bf7c Cleanup: remove plan docs, update NuGet, centralize build config (#1)
## Summary
- Remove `IMPROVEMENT_PLAN.md`, `UI_IMPROVEMENT_PLAN.md` and `MCP_DESIGN.md`, plus the references to them.
- Update all NuGet packages to latest. Fluent UI stays on **4.14.5**: 5.x is a breaking rewrite (toast/message services and the dialog API changed; 40+ build errors) and needs its own migration.
- Move package versions into a central `Directory.Packages.props`; `PackageReference`s no longer carry versions.
- Move `TargetFramework` (`net9.0`) into `Directory.Build.props`.
- Add `global.json` pinning the SDK to 10.0.100 (`rollForward: latestFeature`).
- Null-guard `editContext` in `BookingRuleDialog.SaveAsync` (an existing nullability warning that showed up on a full rebuild).

## Package updates
| Package | From | To |
|---|---|---|
| Microsoft.FluentUI.AspNetCore.Components (+ Emoji, Icons) | 4.11.8 | 4.14.5 |
| Plotly.Blazor | 6.0.1 | 7.2.0 (major) |
| FreeSpire.PDF | 10.2.0 | 12.4.0 (major) |
| Microsoft.Extensions.Logging.Abstractions | 10.0.9 | 10.0.13 |
| Microsoft.NET.Test.Sdk | 17.12.0 | 18.11.0 |
| xunit | 2.9.2 | 2.9.3 |
| xunit.runner.visualstudio | 2.8.2 | 4.0.1 |
| NSubstitute | 5.3.0 | 6.2.0 |
| coverlet.collector | 6.0.2 | 10.1.0 |

## Test plan
- [x] `dotnet build --no-incremental`: no warnings
- [x] `dotnet test`: 58/58 pass
- [ ] Manually check the chart pages (Plotly.Blazor 7)
- [ ] Manually import a PDF bank statement (FreeSpire.PDF 12)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: #1
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-10-22 11:20:31 +00:00