feat(transactions): allow deleting a transaction, and unify the row p… - #57
Merged
Merged
Conversation
…resenter Why: - No UI could delete a transaction, so a wrong entry stayed in the ledger with no way out. The delete use case existed but was unreachable - and unsafe: it reversed the balance with a two-way sign branch that had no TRANSFER case, so deleting an outgoing transfer leg applied the wrong sign, off by twice the amount, and left an orphaned counter-entry that the per-wallet integrity audit cannot see. Separately, a row showed the note in place of the wallet, so two neighbouring rows presented different kinds of information with no marker. What: - The reversal derives from ledgerEffect, which moved to the domain layer where a ledger rule belongs. Transfers are refused in depth: the use case throws before opening a transaction, and the affordance is hidden on transfer rows. Deletion is reachable from the detail screen behind a single confirmation. - A shared presenter owns the row content for both list renderers and the detail hero, so the category is always the title and the wallet always the subtitle, with a discreet indicator when a note exists. Sign and amount colour can no longer diverge between screens.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…resenter
Why:
What: