feat(folio): tag the home total and the card transaction count

the total was the only untagged node on the screen, so the spec had to
sum cards and a clipped card broke the sum.
This commit is contained in:
pj committed 2026-08-14 13:52:28 +05:30
1 parent a6474dc911
commit 6f0ee85eec
1 file changed
+12 -2
@@ -72,7 +72,12 @@ fun HomeScreen(state: HomeUiState, onEvent: (HomeEvent) -> Unit) {
Row(verticalAlignment = Alignment.Bottom) {
Column {
Text("TOTAL BALANCE", style = Type.label, color = t.textMuted)
Text(formatCents(total), style = Type.balance, color = t.text)
Text(
formatCents(total),
style = Type.balance,
color = t.text,
modifier = Modifier.testTag("TotalBalance"),
)
}
Box(Modifier.weight(1f))
Text(
@@ -153,7 +158,12 @@ private fun AccountCard(
overflow = TextOverflow.Ellipsis,
modifier = Modifier.testTag("AccountName"),
)
Text(txnLabel, style = Type.caption, color = t.textMuted)
Text(
txnLabel,
style = Type.caption,
color = t.textMuted,
modifier = Modifier.testTag("AccountTxnCount"),
)
}
Text(
formatCents(balance),