Port career setup, manager hub and context-aware native UI (by Codex)

This commit is contained in:
Codex authored and Codex committed 2026-10-27 01:57:58 +01:00
1 parent d88bf2872a
commit d085697bb9
37 files changed
+1447 -421

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
#include "modern/ui/demo_news.hpp"
#include "modern/ui/demo_career.hpp"
#include <algorithm>
#include <array>
#include <cctype>
@@ -310,7 +311,7 @@ Json demo_news_view(const Catalog &world, const Json &state,
std::string manager, club_id, club_name;
if (state.contains("managers") && state.at("managers").is_array() &&
!state.at("managers").empty()) {
const auto &m = state.at("managers")[0];
const auto &m = demo_career_manager(state);
manager = m.value("name", "");
club_id = m.value("club", "");
if (const auto *c = world.find("clubs", club_id))