Modern UI contract: squad read and contract tests
The squad read lists a squad (own club, any league club or a national team with a nominated squad) with ids, positions, values, absences and, for the manager's own club, monthly salary and remaining contract months. modern_ui_contract_tests checks envelope, identities, money, errors and that reads leave the state unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3336d01004
commit
fec4c6c7e7
5 files changed
+207
-2
No files matched your search
@@ -743,7 +743,7 @@ int main(int argc, char** argv) {
|
||||
read({{"kind", "squad"}});
|
||||
read({{"kind", "table"}, {"league", 42}});
|
||||
// the interface contract (docs/new_engine/ui-anbindung.md)
|
||||
for (const char* kind : {"session", "desktop", "nonsense"}) {
|
||||
for (const char* kind : {"session", "desktop", "squad", "nonsense"}) {
|
||||
const auto request = cli::Json::Object{{"kind", kind}, {"requestId", std::string("request:sim-") + kind}};
|
||||
std::printf("ui_read %s\n -> %s\n", kind, cli::dump_json(session.ui_read(request, revision)).c_str());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user