feat: the Shares section, with one approval (rotate-shares-single-approval, Phase 6)

Removing the second approval took away the only abandon button a member
who had taken part could reach: it lived on the approval row. A running
rotation is now a card above the members -- the step it is on (dealing,
storing, the group signing the new key state), who it waits on and since
when, and Abandon, behind a confirmation, for any member taking part.
It counts as running until the new generation's key state is signed,
while that signature is open, because the old shares wait on it. A
rotation that ended without completing says why until the next one.

The taking-part row now says what it decides: who is left out and as
what, and that nothing more will be asked. REFRESH_CONFIRM and its
string are gone from the UI state.

ShareRefreshManager.progress reads the step and who is missing from
stored messages. Those are now stored once, on first arrival, in record
and publishOwn: a redelivery rewrote the row and reset the stall clock.

Tests: the row names the withheld; the withheld member sees the rotation
run and cannot abandon it; the waiting-on names at dealing and storing;
the signing step, which nobody abandons; an abandoned rotation says why.
The stall-clock test backdates the messages first, and fails with the
old store-every-time behaviour put back. jvmTest 1250/1250; m3Audit at
its budgets; 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:12:23 +02:00
1 parent 46eb23b777
commit 11f2cb2bab
7 files changed
+421 -19

No files matched your search

@@ -131,7 +131,20 @@
<string name="ask_to_be_brought_back">Ask to be brought back</string>
<string name="approve">Approve</string>
<string name="pending_rotation_deal">Take part in rotating the shares</string>
<string name="pending_rotation_confirm">Store your new share</string>
<string name="pending_rotation_everyone">Every member takes part.</string>
<string name="pending_rotation_without">Without %1$s.</string>
<string name="rotation_withheld_until_back">%1$s until they are brought back</string>
<string name="rotation_withheld_for_good">%1$s for good</string>
<string name="pending_rotation_commits">Your device then sends its part, stores your new share and signs the group\'s new key state without asking again.</string>
<string name="rotation_running">Rotating the shares</string>
<string name="rotation_step_dealing">Members are sending their parts of the new shares.</string>
<string name="rotation_step_storing">Members are storing their new shares.</string>
<string name="rotation_step_signing">The group is signing its new key state. The old shares are deleted once it has.</string>
<string name="rotation_abandon_explainer">If someone has stopped answering, any member taking part can abandon the rotation. Every share stays as it was, and the group can start again.</string>
<string name="abandon_rotation">Abandon rotation</string>
<string name="abandon_rotation_question">Abandon this rotation?</string>
<string name="abandon_rotation_body">It ends for every member. Nobody gets a new share, and the group keeps signing with the shares it has.</string>
<string name="rotation_ended">The last rotation ended: %1$s</string>
<string name="pending_repair_help">Help bring a member back</string>
<string name="shares_action_sent">Sent to the group</string>
<string name="share_rotation_requested">Share rotation proposed; every remaining member is asked to take part</string>