feat: proposing a rotation is the proposer's approval (rotate-shares-single-approval, Phase 4)

The proposer was asked like anyone because the button committed them to
a withheld list they were never shown. Now Rotate shares opens a dialog
naming who takes part and who is left out -- the stale members proposing
withholds again automatically included -- and why it would be refused,
before anything is sent. Pressing it is the proposer's agreement: the
session is created with dealApprovedAt set, and the proposer deals at
once.

ShareRefreshManager.plan is the one recipient/withheld split behind both
proposeRefresh and the new preview, so the dialog shows what the
proposal will say. The removal dialog names the stale members too.

Tests: the proposer's half of 'nothing goes out before they approve'
flips; the preview equals the proposal with nobody stale and with one;
a removal's preview names the removed for good and the stale until they
are back; a refused preview says why and sends nothing. jvmTest
1241/1241, m3Audit, brand and wallet audits.

Not seen on a device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-20 01:00:56 +02:00
1 parent 959c120d52
commit 69871c68a5
8 files changed
+287 -35

No files matched your search

@@ -114,6 +114,13 @@
<string name="rotate_shares_without_title">Rotate shares without them?</string>
<string name="rotate_shares_without_body">They are out of the room, but their share of the group key still helps sign until the shares are rotated without them. Rotating asks every remaining member to take part. Shares held before the rotation stop working once every device has deleted them.</string>
<string name="rotate_shares">Rotate shares</string>
<string name="rotate_shares_title">Rotate the shares?</string>
<string name="rotation_taking_part">Taking part: %1$s</string>
<string name="rotation_left_out_until_brought_back">Left out until they are brought back: %1$s</string>
<string name="rotation_left_out_for_good">Left out for good: %1$s</string>
<string name="rotation_proposing_is_taking_part">Each member taking part is asked once. Rotating counts as your own agreement, so you are not asked again.</string>
<string name="rotation_no_key">This group has no key this device can rotate</string>
<string name="rotation_cannot_start">This rotation cannot start: %1$s</string>
<string name="shares">Shares</string>
<string name="share_generation">Generation %1$d</string>
<string name="share_standing_live">Holds a share</string>