Server admin 16: Core channel settings (#683) #745

Closed
charles wants to merge 0 commits from serveradmin-16-core-channel-settings into serveradmin
Owner

Core (UI-free) channel and category settings for server administration: admin::channel with the Overview form per channel type (name, topic, slowmode, URL, announcement switch, bitrate, limits, RTC region), one UpdateChannel with only the changed fields, the follower-stats confirm when turning the announcement switch off, delete with its confirm and result toasts, and duplicate (also with Shift) through #663's CreateGuildChannel carrying overrides. Selectors settings_model, delete_confirm and duplicate_model; tests in tests/admin_channel.rs.

Closes #683

🤖 Generated with Claude Code

https://claude.ai/code/session_0161qMQMsCyJhjYw4gqa6e4K

Core (UI-free) channel and category settings for server administration: `admin::channel` with the Overview form per channel type (name, topic, slowmode, URL, announcement switch, bitrate, limits, RTC region), one `UpdateChannel` with only the changed fields, the follower-stats confirm when turning the announcement switch off, delete with its confirm and result toasts, and duplicate (also with Shift) through #663's `CreateGuildChannel` carrying overrides. Selectors `settings_model`, `delete_confirm` and `duplicate_model`; tests in `tests/admin_channel.rs`. Closes #683 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0161qMQMsCyJhjYw4gqa6e4K
"Duplicate channel" sends the source's overrides with POST /guilds/{id}/channels
(fork packages/schema/src/domains/channel/ChannelRequestSchemas.ts:50-60
ChannelOverwriteRequest, :96-99 permission_overwrites optional;
fluxer_app/src/features/channel/utils/ChannelCreateModalUtils.ts:150-155). The fixture
channel_create_duplicate.json is shaped from those lines; the key is left out while empty
so the create modals' body is unchanged.

Refs #683

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0161qMQMsCyJhjYw4gqa6e4K
admin::channel fills Server administration 16 (spec §3.6): the channel and category
settings screen and its Overview form by channel type (CT/ChannelOverviewTab.tsx,
CT/channel_overview_tab/*), one PATCH /channels/{id} with only the changed fields, the
announcement switch's follower check and confirm, the voice region for UPDATE_RTC_REGION
alone, delete with the original's confirm texts (ChannelDeleteModal.tsx,
CategoryMenuData.tsx) and duplicate with the source's fields and overrides
(ChannelDuplicateModal.tsx, ChannelCreateModalUtils.duplicateChannel).

Outside admin/channel.rs, kept minimal: perms::channel_tabs_with (the rule over the
reducer's context), the ChannelDraft rebase gains the announcement field, Admin gains
channel_admin, AdminCtx the selected channel, and app.rs runs the follow-ups (a duplicate
opens; a deleted open channel gives way to the guild's first). admin_ports no longer
expects the channel actions to be stubs.

Refs #683

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0161qMQMsCyJhjYw4gqa6e4K
Author
Owner

Merged into serveradmin by hand (the merge API returns 405); the commits are in the branch.

Merged into `serveradmin` by hand (the merge API returns 405); the commits are in the branch.
charles closed this pull request 2026-11-16 04:40:02 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.