feat: the member row's menu, and leaving as an admin (member-admin-promotion, Phases 10 and 11, convenient rooms)
Each member row says Admin and Holds a share as two labels, read off the group's state and the Shares roster; when they disagree a share is owed or still to be rotated away. An admin's row has an overflow menu whose items AdminGovernance.memberActions decides: make admin, remove as admin, step down on your own row, remove from group. Promotion and demotion ask first, and promotion says what it gives away. Leave group, pressed by an admin, opens a dialog instead of a refusal: step down and leave when another admin remains, or, for the only admin, pick who takes over (or disband instead). stepDownAndLeave chains the commits through MarmotEngine.afterConfirmed, which is now registered before the commit it waits on and taken back if publishing throws. Keyed rooms keep removal only; their admins wait on the group's signature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d95412ffda
commit
ef33349e7f
13 files changed
+645
-25
No files matched your search
@@ -107,6 +107,27 @@
|
||||
<string name="learn_more">Learn more</string>
|
||||
<string name="leave_group">Leave group</string>
|
||||
<string name="couldn_t_leave_the_group">Couldn't leave the group</string>
|
||||
<string name="member_actions">Member actions</string>
|
||||
<string name="admin_badge">Admin</string>
|
||||
<string name="holds_a_share">Holds a share</string>
|
||||
<string name="make_admin">Make admin</string>
|
||||
<string name="make_admin_title">Make %1$s an admin?</string>
|
||||
<string name="make_admin_body">They'll be able to add and remove members, including you, change who the admins are, and disband the group.</string>
|
||||
<string name="remove_as_admin">Remove as admin</string>
|
||||
<string name="remove_as_admin_title">Remove %1$s as admin?</string>
|
||||
<string name="remove_as_admin_body">They stay in the group as a member.</string>
|
||||
<string name="step_down_as_admin">Step down as admin</string>
|
||||
<string name="step_down_title">Step down as admin?</string>
|
||||
<string name="step_down_body">You stay in the group as a member. Only an admin can make you one again.</string>
|
||||
<string name="step_down">Step down</string>
|
||||
<string name="admin_change_requested">Sent; it takes effect once a relay accepts it</string>
|
||||
<string name="leave_as_admin_title">Leave the group?</string>
|
||||
<string name="step_down_and_leave_body">You're an admin, so you'll step down first, then leave once a relay accepts it.</string>
|
||||
<string name="step_down_and_leave">Step down and leave</string>
|
||||
<string name="pick_heir_body">You're the only admin. Pick someone to make an admin before you leave.</string>
|
||||
<string name="make_admin_and_leave">Make admin and leave</string>
|
||||
<string name="disband_group_instead">Disband group instead</string>
|
||||
<string name="stepping_down_to_leave">Stepping down; you'll leave once a relay accepts it</string>
|
||||
<string name="remove_from_group">Remove from group</string>
|
||||
<string name="disband_group">Disband group</string>
|
||||
<string name="group_disbanded">This group was disbanded. Nothing more can be sent into it, and nobody can rejoin.</string>
|
||||
|
||||
Reference in new issue
Block a user