Skip to content

01a0672f - feat(history): label plain REALU transfers as received/sent - #969

Merged
TaprootFreak merged 10 commits into
stagingfrom
feat/history-transfer-labels
Sep 7, 2026
Merged

01a0672f - feat(history): label plain REALU transfers as received/sent#969
TaprootFreak merged 10 commits into
stagingfrom
feat/history-transfer-labels

Conversation

@TaprootFreakAI

Copy link
Copy Markdown
Collaborator

EN:
Labels inbound REALU from an external wallet as Empfangen instead of Kauf, using the API category. The history screenshot diffs against the baseline from #967.

DE:
Beschriftet eingehende REALU von einer fremden Wallet als Empfangen statt Kauf, anhand der API-Kategorie. Der History-Screenshot diffed gegen die Baseline aus #967.

Details

Same four rows as #967. The shared golden transaction_history_transfer_labels changes +10 from Kauf to Empfangen and −10 from Verkauf to Gesendet. Brokerbot rows stay Kauf/Verkauf.

Follows closed #965 (fork head could not be force-pushed after the rebase).

Blume1977 and others added 10 commits September 7, 2026 07:48
Incoming token transfers from a foreign wallet showed up as 'Kauf' in the
transaction list, because the row widgets label purely by direction
(customer report via RealUnit, 02.09.2026). Brokerbot purchases carry no
DFX transaction, so the app cannot tell them apart on its own.

The API now classifies every history transfer (backend#5353): purchase and
sale for Brokerbot counterparties, transferIn/transferOut for plain token
movements. The app stores that category (new transactions.category column,
schema v3) and resolves the row title through a shared helper: DFX-backed
transactions keep the direction-based buy/sell labels, categorized plain
transfers render as received/sent, and rows without a category (legacy
data, older API) keep the previous direction labels, so backend and app
can roll out independently.

Already-synced entries pick up their category on the next sync via the
existing update path.
Widget tests now assert the concrete received/sent/buy/sell strings
from the localization delegate instead of relative inequality.
Row titles now follow the theme instead of a hardcoded TextStyle, and
the language files end with a newline.
A non-string category on the wire no longer throws in fromJson, so one
bad event cannot abort the whole history sync.
Match the DTO majority convention. Drop the extra is-String guard and its type-mismatch test.
Same four rows as the baseline: inbound 10 is now Empfangen so the
PNG diffs Kauf → Empfangen on that file.
@TaprootFreakAI
TaprootFreakAI marked this pull request as ready for review September 7, 2026 06:00
@TaprootFreakAI

Copy link
Copy Markdown
Collaborator Author

EN:
Ready after 1 review pass.
Inbound REALU from an external wallet is labelled Empfangen instead of Kauf; the history screenshot diffs against #967.

DE:
Bereit nach 1 Review-Durchlauf.
Eingehende REALU von einer fremden Wallet heissen Empfangen statt Kauf; der History-Screenshot diffed gegen #967.

Details

Shared golden transaction_history_transfer_labels: +100 Kauf, +10 Empfangen, −10 Gesendet, −20 Verkauf.

Open comments: none.
Mergeable: MERGEABLE at ea53c98. Analyze & Test, Visual Regression, BitBox quirks audit green.

@TaprootFreak
TaprootFreak merged commit 90fb9ed into staging Sep 7, 2026
11 checks passed
@TaprootFreak
TaprootFreak deleted the feat/history-transfer-labels branch September 7, 2026 06:55
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.

3 participants