Server admin 20: fluxer-core administration rows in the menus #687

Closed
opened 2026-11-15 19:01:24 +00:00 by charles · 0 comments
Owner

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

Closes: — (refs #640)
Depends on: 13, 16, 19

Touches fluxer-core and one file of fluxer-ui (the voice participant menu builds its rows there today); serialised with nothing else in that file.

Files:

  • Modify: crates/fluxer-core/src/menus/{channel.rs,guild.rs,user.rs,mod.rs}, crates/fluxer-ui/src/screens/main/participant_menu.rs (its moderation rows come from menus::user's builders)
  • Test: crates/fluxer-core/tests/menus_admin.rs, crates/fluxer-ui/tests/participant_menu.rs (extend)

Interfaces:

  • Produces, each row in the original's group and position (spec §3.1 rows 36, 59–61, 63–68; AM/items/{ChannelMenuData,CategoryMenuData,GuildMenuData,GuildMemberMenuItems,VoiceParticipantMenuData}.tsx, AM/GuildMemberContextMenu.tsx): channel menu "Edit channel" (MANAGE_CHANNELS, or UPDATE_RTC_REGION on voice; only when channel_tabs is not empty), "Duplicate channel" (MANAGE_CHANNELS; the action carries whether Shift was held), "Delete channel" (danger); category menu "Edit category", "Delete category"; guild menu "Community settings ▸" (a submenu, one row per settings_tabs entry by its label, the row itself opening the first; absent when empty); user menu in a guild: "Change nickname" (group 2), "Transfer ownership", "Timeout" / "Remove timeout", "Kick member", "Ban member" (group 6, danger where the original's are), "Roles ▸" as checkboxes from members::roles_menu when the user has MANAGE_ROLES and the read-only list otherwise (#640); the voice participant menu gains the same nickname, timeout, kick and ban rows; "Copy role ID" stays with Task 12's role menu.

  • docs/parity is not touched here (Task 34).

  • Step 1: Write failing tests: table channel_menu_admin_rows (text, voice, category, forum × MANAGE_CHANNELS, UPDATE_RTC_REGION only, none), table guild_menu_settings_submenu (per permission set; absent when empty), table user_menu_moderation_rows (owner, moderator, member × target self, owner, higher, lower, administrator, bot, timed out), roles_submenu_checkboxes_vs_read_only, rows_are_in_the_original_groups_and_order (the whole menu's ids against a list written from the fork), participant_menu_rows_match_user_menu, existing_menu_tests_untouched.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): administration rows in the menus.

Task 20 of the Server administration plan (`docs/superpowers/plans/2026-11-15-serveradmin.md`, section "### Task 20:"). The plan on the `serveradmin` branch is the source of truth; this copy is for reading. **Closes:** — (refs #640) **Depends on:** 13, 16, 19 Touches `fluxer-core` and one file of `fluxer-ui` (the voice participant menu builds its rows there today); serialised with nothing else in that file. **Files:** - Modify: `crates/fluxer-core/src/menus/{channel.rs,guild.rs,user.rs,mod.rs}`, `crates/fluxer-ui/src/screens/main/participant_menu.rs` (its moderation rows come from `menus::user`'s builders) - Test: `crates/fluxer-core/tests/menus_admin.rs`, `crates/fluxer-ui/tests/participant_menu.rs` (extend) **Interfaces:** - Produces, each row in the original's group and position (spec §3.1 rows 36, 59–61, 63–68; `AM/items/{ChannelMenuData,CategoryMenuData,GuildMenuData,GuildMemberMenuItems,VoiceParticipantMenuData}.tsx`, `AM/GuildMemberContextMenu.tsx`): channel menu "Edit channel" (MANAGE_CHANNELS, or UPDATE_RTC_REGION on voice; only when `channel_tabs` is not empty), "Duplicate channel" (MANAGE_CHANNELS; the action carries whether Shift was held), "Delete channel" (danger); category menu "Edit category", "Delete category"; guild menu "Community settings ▸" (a submenu, one row per `settings_tabs` entry by its label, the row itself opening the first; absent when empty); user menu in a guild: "Change nickname" (group 2), "Transfer ownership", "Timeout" / "Remove timeout", "Kick member", "Ban member" (group 6, danger where the original's are), "Roles ▸" as checkboxes from `members::roles_menu` when the user has MANAGE_ROLES and the read-only list otherwise (#640); the voice participant menu gains the same nickname, timeout, kick and ban rows; "Copy role ID" stays with Task 12's role menu. - `docs/parity` is not touched here (Task 34). - [ ] **Step 1: Write failing tests**: table `channel_menu_admin_rows` (text, voice, category, forum × MANAGE_CHANNELS, UPDATE_RTC_REGION only, none), table `guild_menu_settings_submenu` (per permission set; absent when empty), table `user_menu_moderation_rows` (owner, moderator, member × target self, owner, higher, lower, administrator, bot, timed out), `roles_submenu_checkboxes_vs_read_only`, `rows_are_in_the_original_groups_and_order` (the whole menu's ids against a list written from the fork), `participant_menu_rows_match_user_menu`, `existing_menu_tests_untouched`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): administration rows in the menus`.
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#687
No description provided.