mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Fills out the last two disabled entries in the client right-click menu (#72): "Channel-Gruppe zuweisen" and "Server-Gruppe zuweisen". - Connector: exposes each client's database_id, channel_group, and server_groups (already present in tsclientlib's bookkeeping Client struct, just not threaded through before) on the "channels" snapshot. Adds raw commands for channelgrouplist/servergrouplist (list requests, same InMessage pattern as banlist/complainlist) and setclientchannelgroup/servergroupaddclient/servergroupdelclient (assignment, fire-and-forget like kick/ban). - Gateway: typed passthrough for the new client fields and five new message types (getChannelGroupList, getServerGroupList, setChannelGroup, addServerGroup, removeServerGroup). - Frontend: new GroupAssignDialog reused for both channel groups (single-select, closes after assigning) and server groups (multi-select, checkmarked entries toggle add/remove and the dialog stays open). Demo mode simulates real group membership changes, including live re-render after assignment. Verified against the real server: the client's own database_id/ channel_group/server_groups now flow correctly end-to-end (confirmed via a throwaway gateway test script). The list-request commands are permission-gated for the guest test account and decline silently, same as serverlog/serverconninfo before them - the dialog's existing 6s "unavailable" timeout already covers this. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>