Skip to content

[DEV-1436] combined context#2

Merged
Krysh90 merged 5 commits intodevelopfrom
feature/DEV-1436-combined-context
Apr 3, 2023
Merged

[DEV-1436] combined context#2
Krysh90 merged 5 commits intodevelopfrom
feature/DEV-1436-combined-context

Conversation

@Krysh90
Copy link
Copy Markdown
Contributor

@Krysh90 Krysh90 commented Mar 30, 2023

No description provided.

@Krysh90 Krysh90 requested a review from davidleomay March 30, 2023 14:23
Comment thread package.json Outdated
Comment thread src/screens/home.tsx Outdated
Comment thread src/contexts/language.context.tsx Outdated
Comment thread src/components/navigation.tsx Outdated
Comment thread src/components/navigation.tsx Outdated
@Krysh90 Krysh90 requested a review from davidleomay April 3, 2023 08:57
@Krysh90 Krysh90 merged commit a142398 into develop Apr 3, 2023
@Krysh90 Krysh90 deleted the feature/DEV-1436-combined-context branch April 3, 2023 14:13
davidleomay added a commit that referenced this pull request Jul 9, 2024
TaprootFreak added a commit that referenced this pull request Apr 9, 2026
- Extract XML builder to src/util/camt053-builder.ts (#6)
- Add IBAN validation via Validations.Iban for both IBAN fields (#2)
- Escape bookingDate/valueDate/currency in XML output (#3)
- Add NaN guard for parseFloat on amount (#5)
- Use crypto.randomUUID() for AcctSvcrRef (#8)
- Change button label from "Next" to "Upload" (#10)
TaprootFreak added a commit that referenced this pull request Apr 10, 2026
* feat: add manual bank transaction entry page at /sepa/manuell

Add a form-based alternative to XML file upload for creating bank
transactions. The form generates a CAMT.053 XML and submits it via
the existing POST /bankTx endpoint. Admin-only access enforced via
useAdminGuard() on frontend and RoleGuard(BANKING_BOT) on API.

* refactor: improve XML builder readability and fix escapeXml crash

- Fix escapeXml crash on undefined values for optional address fields
- Extract escapeXml, buildPartyXml, buildCamt053Xml outside component
- Break long inline XML strings into readable multi-line structure
- Only emit address XML tags for fields that have values

* fix: remove unused iban parameter from buildPartyXml

* fix: align address fields with repo pattern and make bank data configurable

- Rename buildingNumber→houseNumber, postalCode→zip to match codebase
- Use StyledHorizontalStack for Street+Nr and ZIP+City rows
- Replace plain Country input with StyledSearchDropdown<Country>
- Add autocomplete attributes matching existing screens
- Replace hardcoded ACCOUNT_IBAN/OWNER/BANK with form fields
- Fix amount formatting to 2 decimal places
- Remove unused async from onSubmit

* fix: remove type=submit to prevent double form submission

* fix: address all review comments

- Extract XML builder to src/util/camt053-builder.ts (#6)
- Add IBAN validation via Validations.Iban for both IBAN fields (#2)
- Escape bookingDate/valueDate/currency in XML output (#3)
- Add NaN guard for parseFloat on amount (#5)
- Use crypto.randomUUID() for AcctSvcrRef (#8)
- Change button label from "Next" to "Upload" (#10)

* Fix navigation path for manual entry button

* Fix typo in route path from 'manuell' to 'manual'

---------

Co-authored-by: David May <85513542+davidleomay@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants