mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Add Bannliste and Beschwerdeliste management dialogs
Implements #91 (ban list) and #92 (complaint list), reusing the StreamItem::MessageEvent handling infrastructure added for #94. Connector: - New raw commands: banlist, bandel, bandelall, complainlist, complaindel, complaindelall (no typed builders exist for these). - New pending_ban_list/pending_complain_list flags + MessageEvent match arms parsing InMessage::BanList/ComplainList replies into BanListEntry/ComplainListEntry structs, emitted as banList/ complainList events. - Unlike serverlog/serverconninfo, the test server actually replies with an error return code for these (surfaced as a "permission error" Server-tab log line) rather than staying silent - the connector already handles that path via the existing pending message result matching. Gateway: getBanList/deleteBan/deleteAllBans/getComplainList/ deleteComplaint/deleteAllComplaintsFor methods and message cases, plus camelCase remapping for the two new event types. Frontend: BanListDialog and ComplainListDialog components (table view, per-row delete + delete-all for bans, optimistic local removal on delete), wired into the Extras menu (previously disabled placeholders), with the same 6s timeout-to-"unavailable" fallback pattern used by the other async-reply dialogs. Demo mode gets fake ban/complaint entries. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4318ce359f
commit
bd0122812d
7 files changed
+678
-13
No files matched your search
@@ -1058,6 +1058,35 @@
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
.ts-ban-list-dialog,
|
||||
.ts-complain-list-dialog {
|
||||
width: 720px;
|
||||
}
|
||||
|
||||
.ts-ban-list-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-ban-list-table th,
|
||||
.ts-ban-list-table td {
|
||||
text-align: left;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.ts-ban-list-table th {
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ts-dialog-buttons-left {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.ts-server-protocol-log-line {
|
||||
padding: 0.15rem 0.4rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
|
||||
Reference in new issue
Block a user