Server admin 33: Identity check, delete community and transfer ownership modals #701

Closed
opened 2026-11-15 19:01:59 +00:00 by charles · 1 comment
Owner

Task 33 of the Server administration plan (docs/superpowers/plans/2026-11-15-serveradmin.md, section "### Task 33:"). The plan on the serveradmin branch is the source of truth; this copy is for reading.

Closes: —
Depends on: 19, 23, 27

Files:

  • Create: crates/fluxer-ui/src/screens/main/modals/{sudo.rs,transfer_ownership.rs}
  • Modify: crates/fluxer-ui/src/screens/main/modals/mod.rs, screens/main/message_actions/confirm.rs (Confirm::{DeleteGuild, TransferOwnership}), crates/fluxer-ui/src/app.rs (the sudo modal above everything, including the settings screens)
  • Test: crates/fluxer-ui/tests/sudo_modal.rs, crates/fluxer-ui/tests/screenshots.rs

Interfaces:

  • Produces: the verification modal (feat/auth/components/modals/SudoVerificationModal.tsx): the password field (masked, never echoed into a model or a log) or the authenticator code field by the core's method, the field error, the submitting state, cancel, the "no supported methods" state; the field's text lives only in the widget's own state and leaves it in SudoAction::Submit; "Delete community" (GuildDeleteModal.tsx) and "Transfer ownership" (TransferOwnershipModal.tsx) with their strings and danger buttons.

  • Tests: password_field_is_secure_and_not_in_any_model (the headless model dump is searched for the typed text), totp_field_when_method_is_totp, error_shown_and_field_cleared_on_retry, cancel_emits_cancel, no_methods_state, delete_and_transfer_confirm_strings, sudo_modal_is_above_settings_screen; goldens sudo_modal_password, sudo_modal_totp, sudo_modal_error, delete_community_modal, transfer_ownership_modal.

  • Commit feat(ui): identity check, delete community, transfer ownership.

Task 33 of the Server administration plan (`docs/superpowers/plans/2026-11-15-serveradmin.md`, section "### Task 33:"). The plan on the `serveradmin` branch is the source of truth; this copy is for reading. **Closes:** — **Depends on:** 19, 23, 27 **Files:** - Create: `crates/fluxer-ui/src/screens/main/modals/{sudo.rs,transfer_ownership.rs}` - Modify: `crates/fluxer-ui/src/screens/main/modals/mod.rs`, `screens/main/message_actions/confirm.rs` (`Confirm::{DeleteGuild, TransferOwnership}`), `crates/fluxer-ui/src/app.rs` (the sudo modal above everything, including the settings screens) - Test: `crates/fluxer-ui/tests/sudo_modal.rs`, `crates/fluxer-ui/tests/screenshots.rs` **Interfaces:** - Produces: the verification modal (`feat/auth/components/modals/SudoVerificationModal.tsx`): the password field (masked, never echoed into a model or a log) or the authenticator code field by the core's method, the field error, the submitting state, cancel, the "no supported methods" state; the field's text lives only in the widget's own state and leaves it in `SudoAction::Submit`; "Delete community" (`GuildDeleteModal.tsx`) and "Transfer ownership" (`TransferOwnershipModal.tsx`) with their strings and danger buttons. - [ ] Tests: `password_field_is_secure_and_not_in_any_model` (the headless model dump is searched for the typed text), `totp_field_when_method_is_totp`, `error_shown_and_field_cleared_on_retry`, `cancel_emits_cancel`, `no_methods_state`, `delete_and_transfer_confirm_strings`, `sudo_modal_is_above_settings_screen`; goldens `sudo_modal_password`, `sudo_modal_totp`, `sudo_modal_error`, `delete_community_modal`, `transfer_ownership_modal`. - [ ] Commit `feat(ui): identity check, delete community, transfer ownership`.
Author
Owner

From the review of Task 22 (PR #741): the store is not told when the runtime drops the sudo token on SUDO_MODE_REQUIRED, so admin.sudo.token_valid_until can be stale. Do not use it to skip the identity-check prompt; let the server's answer decide.

From the review of Task 22 (PR #741): the store is not told when the runtime drops the sudo token on SUDO_MODE_REQUIRED, so admin.sudo.token_valid_until can be stale. Do not use it to skip the identity-check prompt; let the server's answer decide.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#701
No description provided.