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 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-10-24 11:47:28 +02:00
1 parent ea557306a5
commit 7b6ea16c3b
2 files changed
+12

No files matched your search

@@ -703,4 +703,5 @@
<string name="put_to_the_group">Put to the group</string>
<string name="couldn_t_put_it_to_the_group">Couldn't put it to the group.</string>
<string name="wallets_your_groups_guard">Wallets your groups guard</string>
<string name="this_device_shares_these_on_its_own_when_it_can">This device tells the groups above about these on its own when it can. Share now if a group above hasn't heard.</string>
</resources>
@@ -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 = {