Render channel commander status and confirm self-only changes

This commit is contained in:
omar committed 2026-11-27 16:21:26 +03:00
1 parent d9570f3cc8
commit d1450439d5
20 files changed
+640 -64

No files matched your search

+6
View File
@@ -267,6 +267,12 @@ fn client_menu_commands_are_validated_and_never_fake_success_offline() {
}
let (r,_)=core.request("invalid-stats","client_action",json!({"client_id":42,"uid":"fixture","generation":9_007_199_254_740_992u64,"action":"connection_info"}));
assert_eq!(r["error"]["code"],"bad_request","{r}");
for flag in [None,Some(json!(1)),Some(Value::Null)] {
let mut args=json!({"client_id":42,"uid":"fixture","generation":1,"action":"commander"});
if let Some(flag)=flag {args["enabled"]=flag;}
let (reply,_) = core.request("invalid-commander","client_action",args);
assert_eq!(reply["error"]["code"],"bad_request","{reply}");
}
let actions=[
json!({"action":"poke","message":"fixture"}),json!({"action":"connection_info"}),
json!({"action":"commander","enabled":true}),json!({"action":"server_group","group_id":6,"enabled":true}),