Add "Texte bereinigen" page for cleaning booking texts #8
Loading…
Reference in a new issue
No description provided.
Delete branch "text-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A new page Stammdaten → Texte bereinigen (
/text-cleanup?acc=<number>) to view and clean the booking texts of one account, e.g. "Ferien", in the year selected in the header.Scope, as agreed: one account, the selected year, only the
Textfield, only existing bookings. Booking rules and the booking-text list are not touched.Page
$1groups. For example^(.+) Luzern$→Luzern $1turns "Migros Luzern" into "Luzern Migros".unsaved-guard.jsas the JSON editor).Saving
RawDataRepository.SaveTransactionTextsAsyncchanges only theTextof the given bookings (by ID):backup/{mandator}/{year}/json-{timestamp}/, then saved atomically throughBaseRepository, so cached data is refreshed;TextReplacement(Services) holds the search and replace logic:$in the replacement;Layout fix (app-wide)
The content area (
.body-content) scrolls its own content and was only as tall as the page, so on short pages open dropdowns were cut off after a line or two. It now fills at least the window between header and footer (app.css). On short pages the footer therefore sits at the bottom of the window. The account list is also limited to 360 px and scrolls.Test plan
dotnet build: no warningsdotnet test: 111/111 pass, including 13 new tests:RawDataRepositoryTestShould: load with hash, only Text changes plus backup, empty text refused, unknown booking refused, changed file refusedTextReplacementTestShould: case handling, literal special characters, regex groups, no match, invalid regex, empty search, tidyreturninside an element first caused "A frame of type 'Element' was left unclosed"; fixed and checked.🤖 Generated with Claude Code