From 7b6ea16c3bb8192eeb6b4ca700ae8eb95a56daf0 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Sat, 24 Oct 2026 11:47:28 +0200 Subject: [PATCH] feat(wallet): the wallet screen says sharing upward happens on its own (forwarding, Phase 6) Tell the groups above stays, as the fallback for what the automatic forwarding could not send, and now says so once under its heading: this device tells the groups above on its own when it can, and Share is for a group above that has not heard. Co-Authored-By: Claude Opus 5.5 --- .../commonMain/composeResources/values/strings.xml | 1 + .../bennu/compose/ui/composable/GroupWalletScreen.kt | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/composeApp/src/commonMain/composeResources/values/strings.xml b/composeApp/src/commonMain/composeResources/values/strings.xml index 5caa64b2..566b9877 100644 --- a/composeApp/src/commonMain/composeResources/values/strings.xml +++ b/composeApp/src/commonMain/composeResources/values/strings.xml @@ -703,4 +703,5 @@ Put to the group Couldn't put it to the group. Wallets your groups guard + This device tells the groups above about these on its own when it can. Share now if a group above hasn't heard. diff --git a/composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/GroupWalletScreen.kt b/composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/GroupWalletScreen.kt index 00924465..7d1bffc8 100644 --- a/composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/GroupWalletScreen.kt +++ b/composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui/composable/GroupWalletScreen.kt @@ -101,6 +101,7 @@ import bennu.composeapp.generated.resources.share import bennu.composeapp.generated.resources.spend import bennu.composeapp.generated.resources.shared_with_the_groups_above import bennu.composeapp.generated.resources.tell_the_groups_above +import bennu.composeapp.generated.resources.this_device_shares_these_on_its_own_when_it_can import bennu.composeapp.generated.resources.wallets_of_groups_below_this_one import com.machankura.bennu.compose.managers.GuardianManager import com.machankura.bennu.compose.ui.view.state.GuardedWalletRow @@ -717,6 +718,16 @@ private fun LazyListScope.guardianItems( item { Text(text = stringResource(Res.string.tell_the_groups_above), style = MaterialTheme.typography.titleMedium) } + // What is left here is what the automatic forwarding could not send -- + // a notice lost on the wire, most often -- so the section says so, once. + // docs/guarded-wallet-forwarding.md, Phase 6. + item { + Text( + text = stringResource(Res.string.this_device_shares_these_on_its_own_when_it_can), + style = MaterialTheme.typography.bodyMedium, + color = MaterialTheme.colorScheme.onSurfaceVariant, + ) + } items(shareable, key = { "shareable-" + it.statement.id }) { candidate -> ListItem( headlineContent = {